发布时间:2019-08-28 09:07:53编辑:auto阅读(2029)
#!/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语句
51946
51738
42037
38880
33369
30334
28976
23995
23910
22265
439°
2615°
3311°
2748°
2729°
3496°
2694°
3522°
5813°
5599°