- 博客(3)
- 收藏
- 关注
转载 python while循环和for 循环
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<age_of_sy: ...
2019-05-23 10:37:00
88
转载 python if else 流程判断
1.if-else 语句: uesrname="sy" age=18 -username=input("username:") -age=input("age:") if -username=username and -age=age: print("welcome in {name}".format(name=username)) else: print("p...
2019-05-23 10:01:00
91
转载 python 用户交互程序和格式化输出
1.用户交互程序经常使用的是input函数: name=input("username:") password=input("password:") 2.对用户密码加密,用inport调用模块getpass: inport getpass name=input("username:") password=getpass.getpass("password") 3.格式化输出...
2019-05-23 09:54:00
123
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人