Py学习  »  Yunbo Sim  »  全部回复
回复总数  1
5 年前
回复了 Yunbo Sim 创建的主题 » 如何使用Python类并请求用户输入?

固定为:

# Declare variables. Ask user for input and use the exception handling function       
arithmatic = Arithmetic()
n1 = arithmatic.float_input("Enter your First number: ")
n2 = arithmatic.float_input("Enter your Second number: ")