发布时间:2019-08-28 09:07:53编辑:auto阅读(1803)
#!/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语句
50554
49873
40464
37452
31886
28766
27684
22467
22462
20775
560°
1187°
965°
891°
1150°
1007°
1631°
3023°
2745°
2067°