编辑器
import pty, os m, s = pty.openpty() print(os.ttyname(s))
/dev/pts/1