#应该是最难的一关了吧,补课了很多知识
# keyword.iskeyword()用于判断关键字
# string扩展库
# and 和 or 的逻辑判断
import string
import keyword
n = input("Please Input Identifier:")
digits = string.digits #包含0-9的数字字符串
letters = string.ascii_letters#包含所有大小写字母的字符串
punctuation = string.punctuation#包含所有标点符号的字符串
Underline = '_'
lenth = len(n
第6关:Python的标识符
最新推荐文章于 2023-05-04 22:17:53 发布