Python论坛  - 讨论区

标题:[python-chinese] [OT]关于不等于<>和!=的疑惑?

2007年09月04日 星期二 00:44

Samuel Chi princeofdatamining在gmail.com
星期二 九月 4 00:44:51 HKT 2007

ΪʲôÖ÷Á÷¶¼ÊÇÖ§³Ö!=¶ø²»Ö§³Ö
ÎÒ¾õµÃ²»µÈÓÚÓ¦¸ÃÓÃ
±È!=ºÃ,ÒòΪÈç¹û!ÓÃÓÚ·ñ²Ù×÷ʱ,!=ÓÖÓÃÓÚÅжϲ»µÈÓÚºó,a = a ! b¾Íû°ì·¨Ð´³Éa != bÁË.
ÏëÏë+=,-=,*=,/=,%=,<<=,>>=,|=,&=,^=,&&=,||=¶¼¿ÉÒÔ,ƫƫ¶Àȱ!=
¶øÇÒ
¸úÆäËû±È½Ï²Ù×÷·ûÒ²ºÜÏàÅä"<,=,>,==,
"±È"<,=,>,==,!="¿´ÆðÀ´Ë³ÑÛ¶àÁË.

!=´úÌæ
µÄºÃ´¦ÔÚÄÄÀï?ΪʲôÁ¬py3000ҲҪȥµô
ÄØ?
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070904/455da414/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年09月04日 星期二 01:09

Yang Yongsheng ysyang2002在gmail.com
星期二 九月 4 01:09:12 HKT 2007

ϰ¹ßµÄÁ¦Á¿¡£

On 9/4/07, Samuel Chi <princeofdatamining在gmail.com> wrote:
>
> ΪʲôÖ÷Á÷¶¼ÊÇÖ§³Ö!=¶ø²»Ö§³Ö
> ÎÒ¾õµÃ²»µÈÓÚÓ¦¸ÃÓñÈ!=ºÃ,ÒòΪÈç¹û!ÓÃÓÚ·ñ²Ù×÷ʱ,!=ÓÖÓÃÓÚÅжϲ»µÈÓÚºó,a = a ! b¾Íû°ì·¨Ð´³Éa != bÁË.
> ÏëÏë+=,-=,*=,/=,%=,<<=,>>=,|=,&=,^=,&&=,||=¶¼¿ÉÒÔ,ƫƫ¶Àȱ!=
> ¶øÇÒ¸úÆäËû±È½Ï²Ù×÷·ûÒ²ºÜÏàÅä"<,=,>,==,"±È"<,=,>,==,!="¿´ÆðÀ´Ë³ÑÛ¶àÁË.
>
> !=´úÌæµÄºÃ´¦ÔÚÄÄÀï?ΪʲôÁ¬py3000ҲҪȥµôÄØ?
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070904/3fb70faa/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年09月04日 星期二 10:04

huyuxin huyx在uniwelltech.com
星期二 九月 4 10:04:11 HKT 2007

a ! b 是什么意思? 根本不存在的操作

True ! True == ???

Samuel Chi 写道:
> 为什么主流都是支持!=而不支持
> 我觉得不等于应该用比!=好,因为如果!用于否操作时,!=又用于判断不等于后,
> a = a ! b就没办法写成a != b了.
> 想想+=,-=,*=,/=,%=,<<=,>>=,|=,&=,^=,&&=,||=都可以,偏偏独缺!=
> 而且跟其他比较操作符也很相配"<,=,>,==,"比"<,=,>,==,!="看起来顺眼多了.
>
> !=代替的好处在哪里?为什么连py3000也要去掉呢?
> ------------------------------------------------------------------------
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年09月04日 星期二 10:08

beck917 beck917在gmail.com
星期二 九月 4 10:08:28 HKT 2007

像c靠拢.昨天看群里讨论print(a)都得加括号了..
!=更喜欢些

-----邮件原件-----
发件人: python-chinese-bounces在lists.python.cn
[mailto:python-chinese-bounces在lists.python.cn] 代表 huyuxin
发送时间: 2007年9月4日 10:04
收件人: python-chinese在lists.python.cn
主题: Re: [python-chinese] [OT]关于不等于和!=的疑惑?

a ! b 是什么意思? 根本不存在的操作

True ! True == ???

Samuel Chi 写道:
> 为什么主流都是支持!=而不支持
> 我觉得不等于应该用比!=好,因为如果!用于否操作时,!=又用于判断不等于后,
> a = a ! b就没办法写成a != b了.
> 想想+=,-=,*=,/=,%=,<<=,>>=,|=,&=,^=,&&=,||=都可以,偏偏独缺!=
> 而且跟其他比较操作符也很相配"<,=,>,==,"比"<,=,>,==,!="看起来顺眼多了.
>
> !=代替的好处在哪里?为什么连py3000也要去掉呢?
> ------------------------------------------------------------------------
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese

_______________________________________________
python-chinese
Post: send python-chinese在lists.python.cn
Subscribe: send subscribe to python-chinese-request在lists.python.cn
Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年09月04日 星期二 10:09

limodou limodou在gmail.com
星期二 九月 4 10:09:24 HKT 2007

On 9/4/07, huyuxin <huyx在uniwelltech.com> wrote:
> a ! b 是什么意思? 根本不存在的操作
>
> True ! True == ???
>
能不能讨论些更有意义的东西呢?

-- 
I like python!
UliPad <>: http://code.google.com/p/ulipad/
My Blog: http://www.donews.net/limodou

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号