发布时间:2019-08-28 09:07:53编辑:auto阅读(2227)
#!/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语句
53107
40026
34410
30161
25061
24858
23240
16719
14871
14361
706°
654°
720°
738°
783°
911°
877°
897°
991°
916°