发布时间:2019-08-28 09:07:53编辑:auto阅读(2106)
#!/usr/bin/python
import pexpect
foo = pexpect.spawn('passwd mqjia')
foo.expect("New UNIX password:")
foo.sendline("1234567")
foo.expect("Retype new UNIX password:")
foo.sendline("1234567")
foo.interact()
上一篇: python hash
下一篇: Python语句
52347
52255
42393
39281
33757
30712
29454
24379
24251
22623
115°
127°
133°
141°
127°
238°
228°
244°
244°
285°