摘要:
name: jack name:jack age:20 home:南京 PS:字符串是%s;整数是%d;浮点数是%f 阅读全文
摘要:
name = 10count=0for i in range(10): if count< 3: nan = int(input("age:")) if name == nan: print("恭喜") break # 跳出整个循环 elif name > nan: print("小了") else 阅读全文
摘要:
count=1for i in range(10): print("1.北京\t2.江苏\t3.浙江\t请输入1、2、3、exit") one=input() count=count+1 if one=='1': count=count+1 print("1.东城\t2.朝阳\t3.昌平\t请输入1 阅读全文
摘要:
username=input("username:")password=input("password:")name,passwd='ducai','123'if name==username and passwd==password: print("Welcome!")else: print("w 阅读全文