源代码
txt = "Demo" x = txt.isidentifier() print(x)
运行结果