发布时间:2019-08-28 09:07:53编辑:auto阅读(1626)
#!/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语句
48866
47937
38710
35859
30285
27039
26072
20905
20700
19067
503°
599°
608°
611°
588°
573°
640°
714°
831°
929°