发布时间:2019-08-28 09:07:53编辑:auto阅读(2442)
#!/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语句
54955
41749
36337
31770
26669
26362
24885
20492
16433
15852
2981°
2708°
2808°
2954°
2888°
3152°
3043°
2888°
2879°
2857°