Loading

摘要: example: 1 while True 2 print("Who are you?") 3 name = input() 4 if name != 'Joe': 5 continue 6 print("Hello,Joe. What is the password? (It sis a fish 阅读全文
posted @ 2022-08-06 13:55 solomon-zj 阅读(29) 评论(0) 推荐(0)
摘要: IF控制语句 if关键字; 条件(即求值为True或False的表达式); 冒号; 在下一行开始,缩进的代码块(称为if子句); example: spam = 0 if spam < 5: print('hello world') spam = spam + 1 if 语句代码的流程图 while 阅读全文
posted @ 2022-08-06 13:00 solomon-zj 阅读(34) 评论(0) 推荐(0)