代码改变世界

python读取文件时\n问题处理

2022-02-22 23:59 by ajj40123, 944 阅读, 0 推荐, 收藏, 编辑
摘要:存在如下配置文件1.txt 12345609876 with open('1.txt', 'r', encoding="utf-8") as f: conds = [] for i in range(2): conds.append(f.readline()) print(conds)输出为 ['1 阅读全文

eclipse快捷键

2017-05-29 00:39 by ajj40123, 219 阅读, 0 推荐, 收藏, 编辑
摘要:Ctrl+1 快捷修复 Ctrl+D 快捷删除 shift+enter 跳过本行开始下一行 Ctrl+F11 快速运行 Alt+↑/↓ 快速移动行 Ctrl+Alt+↑/↓ 快速复制行 Ctrl+M 窗口最大化 Alt+/ 自动补全 代码区域右键 选中preferences →Java →edito 阅读全文