发布时间:2019-08-28 09:07:53编辑:auto阅读(2081)
#!/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语句
52200
52106
42274
39141
33644
30602
29279
24260
24150
22518
77°
81°
86°
79°
148°
315°
359°
355°
334°
373°