字符串也是一个模块,有自己的方法,可以通过模块导入的方式来调用
1,string模块导入
import string
2, 其用法
string.ascii_lowercase
string.digits
更多更能可以用dir()函数查看其方法
文章来自 www.96net.com.cn