发布时间:2019-08-28 09:07:53编辑:auto阅读(2202)
#!/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语句
52880
39854
34240
29988
24885
24703
23076
16483
14714
14221
515°
493°
544°
553°
606°
731°
696°
725°
798°
723°