发布时间:2019-08-28 09:07:53编辑:auto阅读(1795)
#!/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语句
50477
49773
40364
37393
31814
28670
27606
22391
22388
20699
457°
1075°
874°
811°
1054°
930°
1547°
2889°
2586°
1985°