sendline-and-send 发表于 2025-02-18 当程序接收一定数量(count)字符时,用sendline(count),则会在缓冲区多出一个换行符\n可能会导致错误,此种情况下应该用send。 有时候伪随机,可以在本地起一个程序来得到随机数 12import osos.popen("").read()