Commit 684ccb2b by BellCodeEditor

auto save

parent 55e28e3a
Showing with 19 additions and 1 deletions
#for i in range(100,1000):
# a = i // 100
# b = i // 10 % 10
# c = i % 10
# if i ==a**3+b**3+c**3:
# print("水仙花数是:%d"%i)
#print("数学的平均分是" + "18" + "分\n")
#print("语文的平均分是"+'58'+"分")
a = input("输入年份")
year=str(a)
print(a)
if year % 4 == 0 and year % 100 != 0 or year % 400 == 0:
print(str(year)+"是润年")
else:
print(str(year)+"不是润年")
# 上节课你是这样绘制的五角星👇: # 上节课你是这样绘制的五角星👇:
# 这节课你可以利用新学的知识自定义五角星的颜色么? # 这节课你可以利用新学的知识自定义五角星的颜色么?
import turtle import turtle
ink = input("什么色?")#绘制五角星# ink = input("re'd"")#绘制五角星#
pen = turtle.Pen() pen = turtle.Pen()
pen.fillcolor(ink) pen.fillcolor(ink)
pen.begin_fill() pen.begin_fill()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment