2025 CUMT 中国矿业大学 Python 编程实践 代码题解
本博文由我的GitHub仓库LymoneLM/LymoneTest代码自动整理生成,进入仓库可以查看最新的代码
如果代码对您有帮助,希望可以给我的仓库点个Star,或者在GitHub关注我,感谢
在我的个人博客莱蒙黎梦可以查看本博文原文和更多其他我的博文
本博文提供的代码仅供参考学习,原题已遗失,先尝试后使用,不同年度课程题目可能略有差异
@[TOC]
Practice2
Practice2\1.py
1  | str = input()  | 
Practice2\10.py
1  | votes = [4, 7, 8, 1, 2, 2, 6, 2, 2, 1, 6, 8, 7, 4, 5, 5, 5, 8, 5, 5, 4, 2, 2, 6, 4]  | 
Practice2\11.py
1  | grades = {'J01':88,'J02':60,'J03':80,'J04':96,'J05':86,'J06':75,'J07':76,'J08':82}  | 
Practice2\12.py
1  | month_days = {1:31, 2:28, 3:31, 4:30, 5:31, 6:30, 7:31, 8:31, 9:30, 10:31, 11:30, 12:31}  | 
Practice2\2.py
1  | temp = float(input())  | 
Practice2\3.py
1  | rate, base, year = input().split(',')  | 
Practice2\4.py
1  | input = input()  | 
Practice2\5.py
1  | input = input()  | 
Practice2\6.py
1  | input = input()  | 
Practice2\7.py
1  | input_str = list(input())  | 
Practice2\8.py
1  | # scores = []  | 
Practice2\9.py
1  | scores = eval(input())  | 
Practice3
Practice3\1.py
1  | x1, y1, x2, y2 = map(float, input().split(','))  | 
Practice3\10.py
1  | m1 = int(input())  | 
Practice3\2.py
1  | pi = 3.14  | 
Practice3\3.py
1  | n = int(input())  | 
Practice3\4.py
1  | w = float(input())  | 
Practice3\5.py
1  | salary = int(input())  | 
Practice3\6.py
1  | a, b, c = map(float, input().split(','))  | 
Practice3\7.py
1  | M = int(input())  | 
Practice3\8.py
1  | year = int(input())  | 
Practice3\9.py
1  | a, b, c = map(float, input().split(','))  | 
Practice4
Practice4\1.py
1  | num = int(input())  | 
Practice4\10.py
1  | for A in range(1, 10):  | 
Practice4\11.py
1  | M = int(input())  | 
Practice4\12.py
1  | M = int(input())  | 
Practice4\13.py
1  | eps = float(input())  | 
Practice4\14.py
1  | import math  | 
Practice4\15.py
1  | a = float(input())  | 
Practice4\2.py
1  | N = int(input())  | 
Practice4\3.py
1  | n = int(input())  | 
Practice4\4.py
1  | a, b, c = eval(input())  | 
Practice4\5.py
1  | n = int(input())  | 
Practice4\6.py
1  | n = int(input())  | 
Practice4\7.py
1  | n = int(input())  | 
Practice4\8.py
1  | n = int(input())  | 
Practice4\9.py
1  | import math  | 
Practice5
Practice5\1.py
1  | def is_odd(num):  | 
Practice5\10.py
1  | def isSymmetrical(lst):  | 
Practice5\11.py
1  | # 递推法  | 
Practice5\12.py
1  | def resolve(n,x):  | 
Practice5\2.py
1  | def passed(score):  | 
Practice5\3.py
1  | def string_num(ch):  | 
Practice5\4.py
1  | def coprime(a, b):  | 
Practice5\5.py
1  | def fib(n):  | 
Practice5\6.py
1  | def FacSum(n):  | 
Practice5\7.py
1  | def huiwen(num):  | 
Practice5\8.py
1  | def prime(n):  | 
Practice5\9.py
1  | def is_prime(n):  | 
Practice6
Practice6\1.py
1  | class BMI:  | 
Practice6\2.py
1  | class Vehicle:  | 
Practice6\3.py
1  | class Point:  | 
Practice7
Practice7\1.py
1  | s = input().strip()  | 
Practice7\2.py
1  | n = int(input())  | 
Practice7\3.py
1  | m, n, k = int(input()), int(input()), int(input())  | 
Practice7\4.py
1  | nums = list(map(int, input().split(',')))  | 
Practice7\5.py
1  | # 1  | 
Practice7\6.py
1  | n = int(input())  | 
编程作业、大作业、课程设计程序代码调试、协助/指导,制作软件/脚本/网页,经验丰富
支持C/C++、JAVA、Python、Matlab、JavaScript、R语言等,欢迎咨询