Python:怎么打印string.ascii_lowercase属性

2024-10-12 15:47:24

1、首先在PyCharm软件中,打开一个Python项目。

Python:怎么打印string.ascii_lowercase属性

3、在python文件编辑区中,输入:“import string”,导入 string 模块。

Python:怎么打印string.ascii_lowercase属性

5、然后输入:“print(x)”,打印出 string.ascii_lowercase 属性。

Python:怎么打印string.ascii_lowercase属性

7、在运行结果窗口中查看运行结果,可以看到已经成功地打印了string模块的ascii娄多骋能_lowercase属性。

Python:怎么打印string.ascii_lowercase属性
猜你喜欢