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

1,string模块导入

    import string

2,  其用法

   string.ascii_lowercase

    string.digits

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

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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2021-11-28
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
  • 2022-02-19
猜你喜欢
  • 2021-10-05
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
相关资源
相似解决方案