发布时间:2019-08-28 09:07:53编辑:auto阅读(2136)
#!/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语句
52617
52530
42643
39541
33948
30909
29696
24591
24442
22814
146°
156°
230°
221°
253°
411°
398°
401°
473°
403°