发布时间:2019-08-28 09:07:53编辑:auto阅读(1650)
#!/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语句
48957
48086
38830
35951
30370
27157
26153
20988
20820
19168
712°
785°
760°
761°
741°
688°
806°
878°
1014°
1273°