发布时间:2019-08-28 09:07:53编辑:auto阅读(1799)
#!/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语句
50525
49837
40430
37441
31859
28728
27659
22436
22435
20748
520°
1145°
930°
863°
1112°
982°
1601°
2979°
2673°
2035°