在此插入代码
def run_twice(animal): animal.run() animal.run()
应该在方法里面做个类型检查才行
哈哈哈,好像是啊。 不过这符合了静态语言vs动态语言啊。只要看起来像就可以了。
Sign in to make a reply
艾菁艾毅
def run_twice(animal): animal.run() animal.run()