1、重启
2、在启动选择系统内核界面,按 e 键进入单用户模式
3、找到 linux16 开头行,删除 ro , 并且在 ro 处添加 rw init=/sysroot/bin/sh
4、按 ctrl + x 进行系统重新引导
5、执行 chroot /sysroot
6、执行 passwd root
7、执行 touch /.autorelabel
8、执行 Ctrl + D 重启系统
posted on 2022-04-03 16:37  狼行千里吃肉  阅读(423)  评论(0)    收藏  举报

import time with open('a.txt', 'rb') as f: f.seek(0, 2) while True: line = f.readline() if len(line) == 0: # 没有内容 time.sleep(0.5) else: print(line.decode('utf-8'), end='')