发布时间:2019-08-28 09:07:53编辑:auto阅读(2223)
#!/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语句
53081
40003
34385
30138
25034
24833
23211
16687
14847
14341
668°
628°
686°
708°
751°
883°
849°
868°
967°
886°