擅长:python、mysql、java
<p>我不知道python,但我可以给您指出正确的方向:看一个C代码示例。这是/dev/ptmx的<a href="http://linux.die.net/man/4/ptmx" rel="nofollow noreferrer">man</a>页。请确保权限和所有者正确!。这是linuxquestions<a href="http://www.linuxquestions.org/questions/linux-general-1/using-linux-pseudo-terminal-pairs-659374/" rel="nofollow noreferrer">forum</a>上关于如何使用C语言的海报</p>