python 字符串 string模块导入及用法

  字符串也是一个模块,有自己的方法,可以通过模块导入的方式来调用

1,string模块导入

    import string

2,  其用法

   string.ascii_lowercase

    string.digits

更多更能可以用dir()函数查看其方法

文章来自 www.96net.com.cn

猜你喜欢

转载自www.cnblogs.com/96net/p/9748870.html
今日推荐