发布时间:2019-08-28 09:07:53编辑:auto阅读(1681)
#!/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语句
49360
48552
39252
36336
30749
27559
26558
21376
21233
19580
220°
457°
444°
541°
888°
610°
1286°
1403°
1215°
1204°