开发者社区> 问答> 正文

Python中函数接受Animal类型的执行语句是什么呢?

Python中函数接受Animal类型的执行语句是什么呢?

展开
收起
闻闻615 2022-03-31 14:30:13 528 0
1 条回答
写回答
取消 提交回答
  • Python中函数接受Animal类型的执行语句的代码为:

    def run_twice(animal):

    animal.run()
    
    animal.run()
    
    2022-03-31 14:31:35
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
From Python Scikit-Learn to Sc 立即下载
Data Pre-Processing in Python: 立即下载
双剑合璧-Python和大数据计算平台的结合 立即下载