10 2020 档案
摘要:#8.程序设计题-面向对象和面对过程 #(1) print('小明,10岁,男,上山去砍柴') print('小明,10岁,男,开车去东北') print('小明,10岁,男,最爱打游戏\n') print('老李,90岁,男,上山去砍柴') print('老李,90岁,男,开车去东北') prin
阅读全文
摘要:#12.7段数码管绘制 import time import turtle as tt # 绘制间隔 def drawGap(): tt.penup() tt.fd(5) # 绘制单段数码管 def drawLine(draw): drawGap() if (draw): tt.pendown()
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号