""""
range()用于生成一段整数序列
"""
text=range(4)
print(text)
print(list(text))
#range里面只有一个数的时候,默认...
阅读全文...
bool类型真假或与
a,b=1,2
#或->or (一真则真)
#和->and(一假则假)
print(a==1 or b==9)#1or0--->1
print(a==3 and b==2)#0and1---->0
#非 not
a=True...
阅读全文...
阅读全文...