发布时间:2019-08-28 09:07:53编辑:auto阅读(2339)
#!/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语句
54128
40883
35394
31038
25927
25665
24113
19645
15714
15187
1945°
1793°
1875°
1956°
1949°
2131°
2086°
1904°
1989°
1971°