代码改变世界

随笔档案-2017年11月

python 学习源码练习(2)——简单文件读取

2017-11-27 21:55 by 逍楚客, 348 阅读, 收藏,
摘要: #文件创建 #!/usr/bin/python3 'makeTextFile.py--create text file' import os ls = os.linesep #get filenamefname = input('please enter the filename:')while T 阅读全文

python 学习源码练习(1)

2017-11-26 16:55 by 逍楚客, 327 阅读, 收藏,
摘要: #编译方式,python3 文件名 #!/usr/bin/python3#print('hello world') mystring = 'hello world'print (mystring) #测试输入 #!\usr\bin\python3 num = input('Please enter 阅读全文

(转)Linux下运行python

2017-11-22 22:22 by 逍楚客, 4578 阅读, 收藏,
摘要: 原文: http://blog.csdn.net/jackywgw/article/details/48847187 在linux命令行下运行python,可以直接输出hello world [python] view plain copy jackywgw@jackywgw-A8F:~/pytho 阅读全文