Loading

摘要: 1. 设置build system 环境 tool -> build system -> new build system ,粘贴以下代码并保存 //ctrl + B 执行程序//ctrl + shift + c 终止程序//ctrl + shift + P 加载控制台 2.为cancel buil 阅读全文
posted @ 2019-04-06 20:25 sablier 阅读(1196) 评论(0) 推荐(0) 编辑
摘要: 方法一:readline函数 f = open("./code.txt") # 返回一个文件对象 line = f.readline() # 调用文件的 readline()方法 while line: print(line, end = '') # 在 Python 3中使用 line = f.r 阅读全文
posted @ 2019-04-06 09:25 sablier 阅读(5337) 评论(0) 推荐(0) 编辑