发布时间:2019-08-28 09:07:53编辑:auto阅读(1988)
#!/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语句
51714
51376
41807
38579
33060
30070
28738
23733
23646
22014
2230°
2916°
2438°
2386°
2956°
2386°
3194°
5248°
5065°
3616°