07 2016 档案
摘要:Pexpect 是 Don Libes 的 Expect 语言的一个 Python 实现,是一个用来启动子程序,并使用正则表达式对程序输出做出特定响应,以此实现与其自动交互的 Python 模块。 Pexpect 的使用范围很广,可以用来实现与 ssh、ftp 、telnet 等程序的自动交互;可以
阅读全文
摘要:python.exe xxx.py --help显示结果如下: Usage: test_optparse.py [options] arg1 arg2 ...Options: --version show program's version number and exit -h, --help sh
阅读全文
摘要:1.base64 Python内置的base64模块可以实现base64、base32、base16、base85、urlsafe_base64的编码解码,python 3.x通常输入输出都是二进制形式,2.x可以是字符串形式。 base64模块的base64编码、解码调用了binascii模块,b
阅读全文
摘要:1 #! /usr/bin/env python3 2 3 """Base16, Base32, Base64 (RFC 3548), Base85 and Ascii85 data encodings""" 4 5 # Modified 04-Oct-1995 by Jack Jansen to use binascii module 6 # Modified 30...
阅读全文

浙公网安备 33010602011771号