摘要:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 阅读全文
摘要:
import turtle turtle.bgcolor('red') turtle.color('yellow') turtle.begin_fill() turtle.fillcolor('yellow') turtle.penup() turtle.goto(-310,200) turtle.pendown() for i in range(5): turtle.forward(15... 阅读全文
摘要:
import turtle turtle.penup() turtle.goto(0,-200) turtle.pendown() turtle.circle(200) turtle.penup() turtle.goto(0,-150) turtle.pendown() turtle.circle(150) turtle.penup() turtle.goto(0,-100) turtle.p... 阅读全文
摘要:
import turtle turtle.color('yellow') turtle.begin_fill() turtle.fillcolor('yellow') turtle.forward(300) turtle.left(144) turtle.forward(300) turtle.left(144) turtle.forward(300) turtle.left(144) turt... 阅读全文
摘要:
import turtle turtle.forward(300) turtle.left(144) turtle.forward(300) turtle.left(144) turtle.forward(300) turtle.left(144) turtle.forward(300) turtle.left(144) turtle.forward(300) 阅读全文
摘要:
import turtle turtle.circle(10) turtle.circle(20) turtle.circle(40) turtle.circle(80) 阅读全文
摘要:
a=float(input('第一条边长:')) b=float(input('第2条边长:')) c=float(input('第3条边长:')) p=(a+b+c)/2 s=(p*(p-a)*(p-b)*(p-c))**0.5 print(s) 阅读全文
摘要:
r=float(input('半径:')) s=3.14*r*r print('面积是:',s) 阅读全文
摘要:
print(float(input('第1个数:'))+float(input('第2个数:'))) 阅读全文
摘要:
>>> name = input("name:") name:zhou >>> print("{}student,learn Python,furture!".format(name)) zhoustudent,learn Python,furture! >>> print("{}daxia,xuehaoPython,dazhanquanjiao! ".format(name[0])) zdax... 阅读全文
摘要:
>>> print ("hello world") hello world >>> 阅读全文