周左
少儿编程侯老师
这个作者很懒,什么都没留下…
展开
-
zhouzuo - 猜数字游戏
# 电脑出随机数字 import random import time xiao = 0 da = 100 a = random.randint(1,100) tt = 1 t1 = time.time() while True: print("正在消耗你的第%d次机会"%tt) print("已将耗时%.2f秒"%(time.time()-t1)) tt+=1 # 我们出数字 b = int(input("请输入数字:范围是%d-%d"%(xiao,da)))原创 2020-08-30 18:49:25 · 123 阅读 · 2 评论 -
周左 - big胖次
a = ("red","orange","yellow","green","cyan") import turtle turtle.speed(0) for wc in range(200): turtle.color(a[wc//41]) turtle.fd(100) turtle.backward(130) turtle.fd(30) turtle.left(1) turtle.done()原创 2020-08-16 18:43:34 · 121 阅读 · 0 评论 -
周左- colorful dog shit
import turtle turtle.speed(0) a = 5 b = 0 c = 10 * ['purple','white','blue',(0.1,0.5,0.5),'skyblue','green','yellow','orange','red',] # long ---> length # prlen(c) w = len(c) for i in range(w): turtle.pensize(a) turtle.pencolor(c[b]) turtle原创 2020-08-09 18:49:59 · 154 阅读 · 0 评论 -
周左 -列表绿色big dog shit
name = ["王者荣耀","我的世界","csgo","和平精英"] num = [623723,418505,42874,237016] import turtle turtle.pencolor("green") turtle.pensize(50) turtle.forward(num[0]/3000) turtle.up() turtle.goto(0,40) turtle.write(name[0], font=(None, 20)) turtle.done() ...原创 2020-07-26 18:52:35 · 165 阅读 · 0 评论