发布时间:2019-08-28 09:07:53编辑:auto阅读(2023)
#!/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语句
51922
51689
42011
38849
33336
30310
28949
23962
23878
22247
350°
2574°
3244°
2700°
2680°
3413°
2644°
3480°
5712°
5512°