python学习-错误记录
且行且忆
这个作者很懒,什么都没留下…
展开
-
python学习-错误记录-打印多个变量时少了comma,逗号
formatter = "%r %r %r %r" print formatter % (1,2,3,4) print formatter % ("one","two","three","four") print formatter % (True, False, False, True) print formatter % (formatter, formatter, forma原创 2014-08-22 10:53:51 · 639 阅读 · 0 评论 -
python学习-错误-多行打印合并成一行
line1 = raw_input("line 1: ") line2 = raw_input("line 2: ") line3 = raw_input("line 3: ") print "I'm going to write these to the file." target.write(line1) target.write("\n") target.write(li原创 2014-08-24 21:24:43 · 3075 阅读 · 0 评论 -
python学习-错误-pydoc不能使用
pydoc在windows下的使用,是在cmd命令行下的 1.首先要配置环境变量 2.然后python -m pydoc原创 2014-08-22 16:22:04 · 1655 阅读 · 0 评论