发布时间:2019-08-28 09:07:53编辑:auto阅读(2428)
#!/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语句
54807
41597
36173
31624
26530
26234
24760
20344
16299
15725
2803°
2563°
2650°
2793°
2740°
2962°
2875°
2717°
2721°
2696°