发布时间:2019-08-28 09:07:53编辑:auto阅读(1715)
#!/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语句
49630
48844
39542
36593
30992
27820
26789
21602
21496
19851
550°
972°
918°
916°
1853°
1027°
1705°
1931°
1527°
1494°