摘要:
__author__ = '12711'#-*- coding:utf-8 -*-class Dog(object): def __init__(self,name,age): self.name=name self.age=age def Yell(self,cry): self.cry=cry 阅读全文
摘要:
__author__ = '12711'#-*- coding:utf-8 -*-'''让用户输入数字相加,若用户输入有误,返回错误while True: num1 = input('num1:') num2 = input('num2:') try: num1 = int(num1) num2 = 阅读全文