05 2025 档案

摘要:习题8.1 from random import random def printInatro(): print("这个程序模拟两个选手A何B的某种竞技比赛") print("程序运行需要A和B的能力值(用0到1之间的小数表示)") def getInputs(): a = eval(input(" 阅读全文
posted @ 2025-05-25 20:09 木立青 阅读(39) 评论(0) 推荐(0)
摘要:7.1 import tokenize import keyword from io import BytesIO def convert_python_file(source_path, target_path): with open(source_path, 'rb') as file: tok 阅读全文
posted @ 2025-05-18 19:26 木立青 阅读(13) 评论(0) 推荐(0)