摘要: def kanchai(name, age, gender): print("%s,%s岁,%s,上山去砍柴" %(name, age, gender)) def qudongbei(name, age, gender): print("%s,%s岁,%s,开车去东北" %(name, age, g 阅读全文
posted @ 2021-11-28 16:49 新祁 阅读(31) 评论(0) 推荐(0)
摘要: numpy、scipy、pandas、matplotlib的读书报告: Numpy: 来存储和处理大型矩阵,比Python自身的嵌套列表(nested list structure)结构要高效的多,本身是由C语言开发。这个是很基础的扩展,其余的扩展都是以此为基础。数据结构为ndarray,一般有三种 阅读全文
posted @ 2021-11-14 00:17 新祁 阅读(45) 评论(0) 推荐(0)
摘要: from random import random # 打印程序介绍信息def printIntro(): print("信计52号进行比赛分析结果:") print("这是团体赛模拟程序:") # 获得程序运行参数def getInputs(): a = eval(input("请输入队伍A的能力 阅读全文
posted @ 2021-11-14 00:09 新祁 阅读(102) 评论(0) 推荐(0)
摘要: import turtle, datetimedef drawGap(): # 绘制数码管间隔 turtle.penup() turtle.fd(5) def drawLine(draw): # 绘制单段数码管 drawGap() turtle.pendown() if draw else turt 阅读全文
posted @ 2021-10-23 23:19 新祁 阅读(37) 评论(0) 推荐(0)
摘要: import mathimport timescale=10print("执行开始")t=time.process_time()for i in range(scale+1): a,b='**'*i,'..'*(scale-i) c=(i/scale)*100 pi=4*(4*math.atan(1 阅读全文
posted @ 2021-10-16 23:08 新祁 阅读(188) 评论(0) 推荐(0)
摘要: 03 money_all=56.75+72.91+88.50+26.37+68.51money_all_str=str(money_all)print("商品总金额为:"+money_all_str)money_real=int(money_all)money_real_str=str(money_ 阅读全文
posted @ 2021-09-13 20:28 新祁 阅读(59) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-09-05 12:23 新祁 阅读(15) 评论(0) 推荐(0)