发布时间:2019-08-28 09:07:53编辑:auto阅读(2120)
#!/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语句
52470
52389
42494
39402
33844
30805
29562
24477
24336
22707
19°
62°
260°
266°
276°
321°
267°
402°
384°
409°