// animal 接口public interface animal { public void run();}//bird类public class bird implements animal{override public void run() { system.out.println("小鸟"); }}//f**h类public class f**h implements animal{ @override public void run() { system.out.println("小鱼"); }}//测试类public class animaltest { public static void main(string[] args) { animal b = new animal(); animal f = new f**h(); b.run(); f.run(); }}//输出为小鸟小鱼这个体肯定是j**a 的多态。。。。什么多线程的概念在里面。。。。 20210311
12345678910111213141516171819202122#!usr/bin/python#-*-coding:utf-8-*-#file:sum_number.py"""求和"""def sumner(n):if **instance(n,int):m=n+1 sum_num=0 for i in range(1,m):sum_num+1.0/(i*(i+1))*(pow(-1,i)...