2013年3月18日

(python learn) 8 流程控制

摘要: if 1 #!/usr/bin/python 2 3 my_number=28 4 guess=int( raw_input("please input a number:")) 5 6 if guess==my_number: 7 print "you got it" 8 elif guess<my_number: 9 print "your guess is too small"10 else:11 print "your guess is too big"首先通过 my_number变量来保存28这个数 阅读全文

posted @ 2013-03-18 14:04 kramer 阅读(176) 评论(0) 推荐(0) 编辑

导航