-1
如果我運行script.py
沒有通過論證它顯示是什麼邏輯與在這裏幹什麼,難道是趕上錯誤
error: list index out of bounds
script.py:
from sys import *
if argv[1]=="what":
print "done"
else:
pass
如果我運行script1.py
沒有傳球失誤它不顯示錯誤
script1.py:
from sys import *
if len(argv)==2 and argv[1]=="what":
print "done"
else:
pass
什麼是邏輯AND
在做什麼?
這是一個複合的if語句,'如果是真的,B是TRUE' –