发布时间:2019-08-28 09:07:53编辑:auto阅读(2109)
#!/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语句
52370
52293
42417
39312
33779
30736
29485
24407
24270
22643
150°
155°
166°
186°
157°
276°
265°
284°
283°
341°