发布时间:2019-08-28 09:07:53编辑:auto阅读(2251)
#!/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语句
53254
40133
34512
30252
25162
24953
23352
16880
14956
14467
843°
768°
840°
847°
898°
1025°
1012°
1012°
1120°
1032°