发布时间:2019-08-28 09:07:53编辑:auto阅读(2460)
#!/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语句
55116
41918
36501
31906
26813
26482
25020
20643
16552
15965
3179°
2876°
2969°
3120°
3052°
3327°
3225°
3056°
3049°
3027°