2018年9月8日

摘要: i=3 username = "xzy" password = "123456" while i>0: name = input("请输入你的用户名:") i -= 1 if name == username: passwd = input("请输入密码:") if passwd == password: print... 阅读全文

posted @ 2018-09-08 14:57 白色雪狐 阅读(878) 评论(0) 推荐(0)

摘要: #基本运算符 #and or not #优先级 ()>not>and>or 数字与布尔值转换 x or y , x为真,值就是x,x为假,值是y x and y, x为真,值是y,x为假,值是x in,not in : 判断子元素是否在原字符串(字典,列表,集合)中: #and or 组合 #综合 阅读全文

posted @ 2018-09-08 10:20 白色雪狐 阅读(181) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3