import java.util.Scanner; public class compounding { public static void main(String[] args) { menu(); int m = scanner.nextInt(); switch(m) { case 1: compound_calate(); break; case 2: single_calate();break; } } private static void compound_calate() {/…
练习一:打出1-100之间的所有偶数 def even_print(): for i in range(1,101): if i % 2 == 0: print (i) even_print() #列表解析式的方式: k = [n for n in range(1,101) if n%2 == 0] print (k) 练习二:设计一个函数,在桌面上创建10个文件,并以数字命名 def text_creation(): path = 'C:/Users/Administrator/Desktop…