发布时间:2019-08-28 09:07:53编辑:auto阅读(1859)
#!/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语句
51143
50548
41168
38001
32465
29368
28234
23086
23050
21373
1421°
2122°
1759°
1686°
1983°
1760°
2435°
4100°
3976°
2838°