发布时间:2019-08-28 09:07:53编辑:auto阅读(2054)
#!/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语句
52039
51897
42132
38978
33477
30427
29060
24088
24003
22352
79°
121°
140°
126°
144°
145°
159°
175°
176°
180°