标签:网址 break color rom def index ref class div
import turtle turtle.color (‘red‘) turtle.fillcolor (‘yellow‘) turtle.begin_fill () for i in range (5): turtle.forward (100) turtle.right (144) turtle.end_fill ()
import turtle from turtle import * for i in range(10): turtle.up () turtle.goto(0,-20*(i+1)) turtle.down () turtle.circle(20*(i+1))
import turtle from turtle import * while True: forward(200) right(170) if(abs(pos()))<1: break
import turtle turtle.color (‘red‘) turtle.bgcolor (‘red‘) turtle.color (‘yellow‘) turtle.fillcolor (‘yellow‘) def lcm_draw5(r): turtle.begin_fill () for i in range(4): turtle.forward (r) turtle.right (144) turtle.end_fill() def lcm_location(x,y): turtle.up () turtle.goto(x,y) turtle.down () lcm_location(-250,75) lcm_draw5(100) lcm_location(-80,125) lcm_draw5(50) lcm_location(-60,100) lcm_draw5(50) lcm_location(-80,-20) lcm_draw5(50) lcm_location(-70,-60) lcm_draw5(50)
import turtle def lcm_draw4(): turtle.forward(100) turtle.right(45) turtle.forward(100) turtle.right(135) for i in range(36): lcm_draw4() lcm_draw4() turtle.left(10)
num=input(‘输入您的学号:‘) print(‘年级:‘+num[:4] ,‘专业:‘+num[4:8], ‘序号:‘+num[8:])
s=(‘一二三四五六日‘) day=int(input(‘输入数字(1-7):‘)) print(‘星期‘+s[day-1])
a=(‘https://docs.python.org/3.6/library/‘) b=(‘.html‘) print(a[:]+‘index‘+b[:])
标签:网址 break color rom def index ref class div
原文地址:http://www.cnblogs.com/lcm1995/p/7522222.html