摘要:
NumPy篇 numpy.around() 函数返回指定数字的四舍五入值 numpy.floor() numpy.floor() 返回小于或者等于指定表达式的最大整数,即向下取整 numpy.ceil() numpy.ceil() 返回大于或者等于指定表达式的最小整数,即向上取整 numpy.rec 阅读全文
posted @ 2020-11-22 19:48
大兔xx
阅读(87)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-11-22 19:41
大兔xx
阅读(43)
评论(0)
推荐(0)
摘要:
#画国际象棋盘,小格边长为width import turtle turtle.speed(0) width = eval(input()) #画黑格 def drawSquare(width): turtle.pendown() turtle.begin_fill() turtle.fillcol 阅读全文
posted @ 2020-11-02 19:47
大兔xx
阅读(214)
评论(0)
推荐(0)
摘要:
import turtle turtle.speed(0) turtle.fillcolor('black') turtle.begin_fill() turtle.circle(120,180) turtle.left(180) turtle.circle(-60,180) turtle.circ 阅读全文
posted @ 2020-11-02 19:45
大兔xx
阅读(94)
评论(0)
推荐(0)
摘要:
coordA=(-110,0,110,-55,55) coordB=(-25,-25,-25,-75,-75) cl=("red","blue","green","yellow","black") #高级应用,画固定大小的奥运五环,半径45 import turtle turtle.pensize( 阅读全文
posted @ 2020-11-02 19:43
大兔xx
阅读(155)
评论(0)
推荐(0)
摘要:
import turtle for i in range(3): turtle.forward(100) turtle.right(120) turtle.left(60) turtle.forward(100) for i in range(3): turtle.right(120) turtle 阅读全文
posted @ 2020-11-02 19:41
大兔xx
阅读(111)
评论(0)
推荐(0)
摘要:
import turtle number = int(input()) #把用户输入转成整数 turtle.screensize(600,500,'white') turtle.pensize(3) #设置画笔宽度为3 turtle.pencolor('blue') #设置画笔颜色为黑色 turtl 阅读全文
posted @ 2020-11-02 19:39
大兔xx
阅读(69)
评论(0)
推荐(0)
摘要:
import turtle radius = eval(input()) #接收用户输入的半径并转换成数值 number = eval(input()) #接收用户输入的画笔宽度并转换成数值 cl = input() #接收用户输入的颜色 turtle.pencolor(cl) turtle.got 阅读全文
posted @ 2020-11-02 19:24
大兔xx
阅读(74)
评论(0)
推荐(0)
摘要:
import turtle turtle.pensize(5) turtle.pencolor("yellow") turtle.fillcolor("red") turtle.begin_fill() for i in range(5): turtle.forward(100) turtle.ri 阅读全文
posted @ 2020-11-02 19:22
大兔xx
阅读(72)
评论(0)
推荐(0)
浙公网安备 33010602011771号