-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' –