发布时间:2019-08-28 09:07:53编辑:auto阅读(1668)
#!/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语句
49152
48298
39024
36146
30555
27352
26356
21183
21026
19365
149°
151°
251°
440°
295°
962°
992°
977°
980°
937°