发布时间:2019-08-28 09:07:53编辑:auto阅读(2278)
#!/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语句
53518
40346
34747
30503
25378
25177
23589
18859
15170
14677
1145°
1067°
1137°
1153°
1188°
1344°
1304°
1277°
1376°
1319°