发布时间:2019-08-28 09:07:53编辑:auto阅读(1755)
#!/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语句
50046
49302
39962
37003
31397
28239
27197
21988
21939
20269
379°
295°
278°
452°
444°
1053°
1970°
1826°
1464°
2938°