2019年5月23日

摘要: 1.while循环 age_of_sy=18 guess_age=input("guess age:") count=0 while count<3: if guess_age==age_of_sy: print("yes,you are right!") break elif guess_age< 阅读全文
posted @ 2019-05-23 10:37 二米sy 阅读(173) 评论(0) 推荐(0) 编辑
 
摘要: 1.if-else 语句: uesrname="sy" age=18 -username=input("username:") -age=input("age:") if -username=username and -age=age: print("welcome in {name}".forma 阅读全文
posted @ 2019-05-23 10:01 二米sy 阅读(759) 评论(0) 推荐(0) 编辑
 
摘要: 1.用户交互程序经常使用的是input函数: name=input("username:") password=input("password:") 2.对用户密码加密,用inport调用模块getpass: inport getpass name=input("username:") passwo 阅读全文
posted @ 2019-05-23 09:54 二米sy 阅读(162) 评论(0) 推荐(0) 编辑