发布时间:2019-08-28 09:07:53编辑:auto阅读(2057)
#!/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语句
52052
51915
42145
38993
33490
30441
29078
24108
24017
22366
110°
147°
159°
148°
170°
159°
175°
184°
184°
192°