看板 Python 關於我們 聯絡資訊
欸豆 最近初學Python 基本上就是一邊看Code一邊看意思 我在一條判斷式中看見 if a<>0 and b<>0: 想請問各位<>是什麼意思 我想說可能是不等於 但是python的判斷式基本與C差不多 不等於也是用!= 不知是否這是慣性用法還是有其他意思? 謝謝各位幫忙 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 123.195.114.31 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1449941272.A.A43.html
os653: 印象中也是不等於,別想太多 12/13 01:36
好的 那就當他不等於 謝謝
tiefblau: != can also be written <>, but this is an obsolete 12/13 01:39
tiefblau: usage kept for backwards compatibility only 12/13 01:40
tiefblau: 官網寫的 12/13 01:40
雖然我想按讚但是沒讚可以按XD 非常感謝你 ※ 編輯: dream0830 (123.195.114.31), 12/13/2015 01:56:59
ckc1ark: http://tinyurl.com/9w845hg Pascal/Basic like 12/13 02:40