发布时间:2019-08-28 09:07:53编辑:auto阅读(1947)
#!/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语句
51598
51188
41692
38451
32936
29923
28627
23593
23524
21871
2033°
2742°
2288°
2217°
2694°
2243°
2991°
4933°
4790°
3407°