发布时间:2019-08-28 09:07:53编辑:auto阅读(1995)
#!/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语句
51764
51449
41856
38628
33121
30112
28787
23780
23697
22063
119°
2293°
2988°
2498°
2440°
3050°
2442°
3250°
5364°
5183°