发布时间:2019-08-28 09:07:53编辑:auto阅读(2134)
#!/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语句
52589
52512
42600
39510
33922
30887
29669
24576
24420
22792
109°
124°
191°
190°
223°
376°
370°
376°
444°
375°