发布时间:2019-08-28 09:07:53编辑:auto阅读(1938)
#!/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语句
51568
51145
41665
38421
32908
29881
28601
23562
23493
21841
1991°
2702°
2265°
2188°
2639°
2207°
2958°
4886°
4722°
3358°