📜  Python 字符串 isalpha() - Python 代码示例

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

代码示例1
username = input("Choose a username:")

if username.isalnum() == True:
    print("The entered username is ", username)
else:
    print("Please enter a valid usernameSrin.")