摘要: 1.使用命令行编译python文件打开命令行,切换盘符,切换到python安装目录。随便找个文本软件写代码,保存为py文件。使用命令 “python 文件名” 实现编译。用命令"exit()"退出python2.list学习from random import choiceprint 'Choose... 阅读全文
posted @ 2015-08-20 14:17 wy1290939507 阅读(1480) 评论(0) 推荐(0) 编辑
摘要: 1.输入输出循环判断num=10bingo=Falsewhile bingo==False: #False的写法要注意 answer=input() if answernum: print 'too big' if answer==nu... 阅读全文
posted @ 2015-08-20 10:47 wy1290939507 阅读(142) 评论(0) 推荐(0) 编辑