摘要: #用户登录3次机会 i = 0 while i < 3 : username = input("请输入用户名:") password = int(input("请输入密码:")) if username == 'cxr' and password ==123: print('Sucessed') e 阅读全文
posted @ 2023-07-20 10:50 antonrr 阅读(15) 评论(0) 推荐(0)
摘要: count = 0 while count < 10: count += 1 #自增 if count == 7: pass else:print(count) 方法一: count = 1 while count < 101: print(count) count += 2 方法二: count 阅读全文
posted @ 2023-07-19 21:40 antonrr 阅读(12) 评论(0) 推荐(0)