Commit aa23c112 by BellCodeEditor

save project

parent c49aa0eb
Showing with 47 additions and 0 deletions
try:
age = int(input('你几岁了?'))
except :
print('写整数!')
else:
if age < 18:
print('不能喝酒!')
print('没了。')
\ No newline at end of file
import turtle
turtle.speed(10)
turtle.pensize(8)
turtle.penup()
turtle.goto(0,-50)
turtle.pendown()
turtle.circle(50)
turtle.color('yellow')
turtle.penup()
turtle.goto(-60,-110)
turtle.pendown()
turtle.circle(50)
turtle.color('green')
turtle.penup()
turtle.goto(60,-110)
turtle.pendown()
turtle.circle(50)
turtle.color('blue')
turtle.penup()
turtle.goto(-120,-50)
turtle.pendown()
turtle.circle(50)
turtle.color('red')
turtle.penup()
turtle.goto(120,-50)
turtle.pendown()
turtle.circle(50)
turtle.done()
\ No newline at end of file
a=open(r'C:\Users\Administrator\Desktop\test.txt','w',encoding='UTF-8')
a.write('小兰:12本')
\ 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