摘要: 阅读全文
posted @ 2021-04-21 06:34 linux_txl 阅读(59) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-04-21 06:17 linux_txl 阅读(56) 评论(0) 推荐(0)
摘要: python 虚拟环境 创建一个虚拟环境 python3 -m venv /path/to/new/virtual/environment 使用虚拟环境 source ./venv_name/bin/activate 阅读全文
posted @ 2021-04-20 23:32 linux_txl 阅读(72) 评论(0) 推荐(0)
摘要: mysql 常用命令 启动mysql服务 mysql.server start 停止mysql 服务 mysql.server stop 重启mysql服务 mysql.server restart 退出命令行 exit; 更改密码 mysqladmin -u root password 12345 阅读全文
posted @ 2021-04-20 13:56 linux_txl 阅读(81) 评论(0) 推荐(0)
摘要: 1. 按行读取文件 def readNode(filename): resultList = [] with open(filename, 'r') as f: while True: line = f.readline() # string if not line: break if line[0 阅读全文
posted @ 2021-04-16 17:41 linux_txl 阅读(237) 评论(0) 推荐(0)