发布时间:2019-08-28 09:07:53编辑:auto阅读(1842)
#!/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语句
50956
50338
40955
37822
32287
29177
28064
22894
22856
21188
1046°
1725°
1407°
1344°
1604°
1436°
2091°
3634°
3552°
2508°