摘要: 读文件 #!/usr/bin/env python #coding: utf-8 file=open('aa.txt'): for line in file: line=line.strip() print line 写文件 #!/usr/bin/env python #coding: utf-8 阅读全文
posted @ 2022-02-17 23:34 lifei888 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 读文件 file=open('aa.txt') for line in file: line=line.strip() print(line) 写文件 with open('test_w.txt', mode='w', encoding='utf8') as f: lines = [ 'this i 阅读全文
posted @ 2022-02-17 23:29 lifei888 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 方式一 echo "RMKTl9389B0="|passwd --stdin root 方式二 echo "RMKTl9389B0="|chpasswd 阅读全文
posted @ 2022-02-17 12:00 lifei888 阅读(7) 评论(0) 推荐(0) 编辑