发布时间:2019-08-28 09:07:53编辑:auto阅读(1628)
#!/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语句
48881
47957
38733
35872
30297
27057
26081
20915
20725
19088
542°
627°
631°
636°
606°
587°
663°
729°
852°
973°