发布时间:2019-08-28 09:07:53编辑:auto阅读(1333)
#!/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语句
47882
46450
37340
34773
29348
26011
24963
19982
19583
18076
5821°
6449°
5962°
5988°
7098°
5938°
5981°
6473°
6438°
7818°