turtle

实验六 turtle绘图与Python库应用编程体验

试验任务一 实验源码 task1 from turtle import * def move(x, y): '''画笔移动到坐标(x,y)处''' penup() goto(x, y) pendown() def draw(n, size = 100): '''绘制边长为size的正n变形''' f ......
turtle Python

实验六 turtle绘图与python库应用编程体验

'''task1_1.py'''from turtle import * def move(x,y): penup() goto(x,y) pendown() def draw(n,size=100): for i in range(n): fd(size) left(360/n) def main ......
turtle python

实验6 turtle绘图与python库应用编程体验

实验任务1 task1_.py 实验源码: from turtle import * def move(x, y): penup() goto(x, y) pendown() def draw(n, size = 100): for i in range(n): fd(size) left(360/ ......
turtle python

实验6 turtle绘图与python库应用编程体验

实验任务1 task1_1 from turtle import * def moveto(x,y): ''' 画笔移动到坐标(x,y)处 ''' penup() goto(x,y) pendown() def draw(n,size = 100): ''' 绘制边长为size的正n边形 ''' f ......
turtle python

实验6 turtle绘图与python库应用编程体验

一、实验结论: 1.实验任务1:task1_1.py 程序源码: 1 from turtle import * 2 3 def move(x, y): 4 '''画笔移动到坐标(x,y)处''' 5 penup() 6 goto(x, y) 7 pendown() 8 9 def draw(n, s ......
turtle python

实验6 turtle绘图与python库应用编程体验

实验任务1: task1_1: 实验源码: from turtle import * def move(x,y): penup() goto(x,y) pendown() def draw(n,size=100): for i in range(n): fd(size) left(360/n) de ......
turtle python

实验6 turtle绘图和Python库应用编程体验

实验任务1 task1_1.py 源代码 1 from turtle import* 2 3 def move(x,y): 4 penup() 5 goto(x,y) 6 pendown() 7 8 def draw(n,size=100): 9 for i in range(n): 10 fd(s ......
turtle Python

实验6 turtle绘图与python库应用编程体验

实验任务一 task1-1: 源代码: 1 from turtle import * 2 3 def move(x,y): 4 penup() 5 goto(x,y) 6 pendown() 7 8 def draw(n,size = 100): 9 for i in range(n): 10 fd ......
turtle python

实验6 turtle绘图与python库应用编程体验

实验任务1 task1_1 1 from turtle import * 2 3 def moveto(x,y): 4 ''' 5 画笔移动到坐标(x,y)处 6 ''' 7 penup() 8 goto(x,y) 9 pendown() 10 11 def draw(n,size = 100): ......
turtle python

实验6 turtle绘图与python库应用编程体验

实验任务1 task1_1 from turtle import * def moveto(x,y): ''' 画笔移动到坐标(x,y)处 ''' penup() goto(x,y) pendown() def draw(n,size = 100): ''' 绘制边长为size的正n边形 ''' f ......
turtle python

实验6 turtle绘图与python库应用编程体验

实验任务一 task1_1 from turtle import * def move(x,y): penup() goto(x,y) pendown() def draw(n,size= 100): for i in range(n): fd(size) left(360/n) def main( ......
turtle python

实验6 turtle绘图与python库应用编程体验

实验任务1:使用turtle绘制基础图形 task1_1.py 实验源码: 1 from turtle import* 2 3 def move(x, y): 4 penup() 5 goto(x, y) 6 pendown() 7 8 def draw(n, size=100): 9 for i ......
turtle python

实验6 turtle绘图与python库应用编程体验

实验任务1 task1_1.py 1 from turtle import * 2 def move(x, y): 3 penup() 4 goto(x, y) 5 pendown() 6 def draw(n, size = 100): 7 8 for i in range(n): 9 fd(si ......
turtle python

实验6 turtle绘图与python库应用编程体验

任务1 from turtle import* def move(x,y): penup() goto(x,y) pendown() def draw(n,size=100): for i in range(n): fd(size) left(360/n) def main(): pensize(2 ......
turtle python

实验6 turtle绘图与python库应用编程体验

task1_1 from turtle import * def move(x,y): penup() goto(x,y) pendown() def draw(n,size=100): for i in range(n): fd(size) left(360/n) def main(): pens ......
turtle python

python 制作奥运五环 (turtle模块)

import turtle#第一个圈turtle.width(10) #画笔宽度10turtle.color("black") #画笔的颜色turtle.circle(50) #半径50的圆#第二个圈turtle.penup() #抬笔turtle.goto(110,0) #去到坐标(110,0)t ......
模块 奥运 python turtle

Codeforces Beta Round 96 (Div. 1) -- C. Logo Turtle (dp,记忆化搜索)

#记忆化搜索 就是暴力,多一步优化,走过的路别走了。说实话,可能是数据水了,居然能过。 const int N = 510; string s; int n, ans; bool st[501][501][2][50]; void dfs(int x, int idx, int dir, int k ......
Codeforces 记忆 Turtle Round Beta

CSC1002 Turtle Graphics

CSC1002 – Computational LaboratoryConnect 4 - 2023 OVERVIEWIn this assignment, you are going to design and to develop a 2-player connection board game ......
Graphics Turtle 1002 CSC
共48篇  :2/2页 首页上一页2下一页尾页