📜  在 python 中使用 try except 获取用户的字符串输入 - Python 代码示例

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

代码示例1
try:
    User_Name = input("What is your name:- ")
    print("Hi "+User_Name+"It's me python")
except:
  print("The user Name Is incorrect")