📜  python代码示例中的isidentifier方法

📅  最后修改于: 2022-03-11 14:46:36.125000             🧑  作者: Mango

代码示例1
#Python's isidentifier() method is used to check whether a string is a valid
#identifier or not.
print('hello'.isidentifier()) #True
print('Py thon'.isidentifier()) #False
print('22Python'.isidentifier()) #False