第一天:
1.请问下面表达式的值是什么?
3 == not 5
正解:报错
由于 not 运算符的优先级比 == 运算符低,所以表达式是先运算 == 的,即先求出 3 == not 的结果,很明显,Python 彼时很懵逼
2.爱因斯坦小游戏
steps= 7
i = 1
FIND = False
while i < 100:
if(steps % 2 == 1)and(steps%3==2)and(steps % 6==5):
FIND = False
break
else:
step = 7 *(i + 1)
i = i + 1
没整明白