发布时间:2019-08-28 09:07:53编辑:auto阅读(2372)
#!/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语句
54390
41144
35671
31249
26151
25868
24355
19899
15938
15390
2237°
2058°
2150°
2261°
2233°
2422°
2383°
2191°
2275°
2244°