string1 = "9hello", string3 = "hello", string4 = "if", string5 = "Programming19", string6 = "Programming is interesting", string7 = "Programming need hard study.", string8 = "4398598734985", string9 = "Programming", 判断下列项目: print(string6.isalnum()) print(string5.isalnum()) print(string8.isalnum()) print(string9.isalpha()) print(string8.isdigit()) print(string4.isidentifier()) print(string3.isidentifier()) print(string1.islower()) print(string3.isupper()) print(string4.isspace()) print(string5.isspace())
时间: 2023-12-31 22:07:00 浏览: 71
print(string6.isalnum()) # False
print(string5.isalnum()) # True
print(string8.isalnum()) # True
print(string9.isalpha()) # True
print(string8.isdigit()) # True
print(string4.isidentifier()) # True
print(string3.isidentifier()) # True
print(string1.islower()) # True
print(string3.isupper()) # False
print(string4.isspace()) # False
print(string5.isspace()) # False
阅读全文