Commit 27957c42 by BellCodeEditor

auto save

parent 8989b4f2
Showing with 8 additions and 11 deletions
import turtle
ink = input("什么色?")
pen = turtle.pen()
pen.fillcolor(ink)
pen.begin
for i in range(5)
pen.forward(200)
pen.right(144)
pen.end_fill()
turtle.done()
\ No newline at end of file
# s是一个0至100的随机数
if s%2==0: # 如果s对2取余等于0,那么s就是一个偶数
print(s, 1)
print("这是一个偶数", 2)
else: #否则,s就是一个奇数
print(s, 1)
print("这是一个奇数", 2)
\ No newline at end of file
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