发布时间:2019-08-28 09:07:53编辑:auto阅读(2121)
#!/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
24478
24336
22707
20°
63°
261°
267°
276°
321°
267°
402°
384°
409°