发布时间:2019-08-28 09:07:53编辑:auto阅读(2313)
#!/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语句
53728
40565
34988
30710
25578
25353
23791
19262
15387
14879
1426°
1319°
1418°
1447°
1463°
1645°
1592°
1507°
1602°
1560°