10 2020 档案

摘要:#8.程序设计题-面向对象和面对过程 #(1) print('小明,10岁,男,上山去砍柴') print('小明,10岁,男,开车去东北') print('小明,10岁,男,最爱打游戏\n') print('老李,90岁,男,上山去砍柴') print('老李,90岁,男,开车去东北') prin 阅读全文
posted @ 2020-10-29 20:21 陈志锋1 阅读(63) 评论(0) 推荐(0)
摘要:#12.7段数码管绘制 import time import turtle as tt # 绘制间隔 def drawGap(): tt.penup() tt.fd(5) # 绘制单段数码管 def drawLine(draw): drawGap() if (draw): tt.pendown() 阅读全文
posted @ 2020-10-19 01:50 陈志锋1 阅读(78) 评论(0) 推荐(0)
摘要:from random import random from time import perf_counter DARTS = 1000*1000*10 hits = 0.0 start = perf_counter() for i in range(1, DARTS+1): x, y = rand 阅读全文
posted @ 2020-10-11 02:40 陈志锋1 阅读(126) 评论(0) 推荐(0)