发布时间:2019-08-28 09:07:53编辑:auto阅读(1890)
#!/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语句
51369
50842
41431
38227
32723
29621
28438
23344
23286
21615
1702°
2430°
2031°
1968°
2312°
1995°
2705°
4527°
4346°
3099°