摘要: For I in range(10) Print(“loop”,i) For 循环 列子1 Age_of_oldboy =56 For I in range(3): Guess_age = int(input(“guess_age:”)) If guess_age ==age_of_oldboy : 阅读全文
posted @ 2017-07-04 22:34 胖君 阅读(131) 评论(0) 推荐(0)
摘要: While循环 最简单的例子 Count = 0 While true: Print(“count:”,count) Count = count + 1 #count +=1 列子1 Age_of_oldboy =56 Count = 0 计数 While true: If count ==3 执行 阅读全文
posted @ 2017-07-04 22:33 胖君 阅读(87) 评论(0) 推荐(0)
摘要: Age of oldboy =56 Guess_age =int(input(“guess age:”)) If guess_age ==age_of_oldboy : Print(“yes,you,got it,”) Elif guess_age > age_of_oldboy: Print(“t 阅读全文
posted @ 2017-07-04 22:32 胖君 阅读(136) 评论(0) 推荐(0)
摘要: 变量 name = wwjun Name2 = “wwjun” print (“name,Name2”) 用户交互 Username = input (“username:”) Password = input (“password:”) Print(username,password) 用户名格式 阅读全文
posted @ 2017-07-04 22:30 胖君 阅读(213) 评论(0) 推荐(0)