Commit 2f8f1561 by BellCodeEditor

auto save

parent 74a9cbd6
Showing with 60 additions and 22 deletions
import turtle
a=turtle.Pen()
b=input("请输入五角星的颜色:")
a.fillcolor(b)
a.begin_fill()
for i in range(5):
a.forward(200)
a.right(144)
a.end_fill()
turtle.done()
\ No newline at end of file
......@@ -6,7 +6,7 @@ import random
list=["石头","剪刀","布"]
computer=random.choice(list)
print(computer)
if piayer in list
if piayer in list:
if piayer==computer:
print("平局")
elif piayer=="石头" and computer=="剪刀":
......@@ -16,6 +16,14 @@ if piayer in list:
elif piayer=="布" and computer=="石头":
print("嬴")
else:
print(”输“)
print("输")
else:
print("错了")
\ No newline at end of file
print("错了")
zh=input("你是否认罪?")
sj=input("你是否认罪?")
if zh=="认罪" and sj=="认罪"
print("都判十年")
elif zh=="认罪" and sj=="不认罪"
print("zh1年,sj20年")
_=["刘备","关羽","张飞"]
_[0]="关羽"
_[1]="刘备"
print(_)
_.pop(0)
_.remove("关羽")
duuy=["bg","eg"]
_.append("tyfyhfyjffj")
_.extend(duuy)
_.insert(1,"fttrfjrfrf")
name=input("请输入星期几:")
if name=="星期一":
print("学钢琴")
elif name=="星期三":
print("学编程")
elif name=="星期六":
print("学英语")
else:
print("学国学")
import turtle
a=turtle.Pen()
s=turtle.Screen()
d=s.textinput("提示","你要爱心多大?")
f=int(d)
s.bgcolor("blue")
a.pensize(5)
a.pencolor("red")
a.left(45)
a.forward(2*f)
a.circle(f,180)
a.right(90)
a.circle(f,180)
a.forward(2*f)
a.penup()
a.goto(100,-100)
a.write("阿斯顿法国红酒\n看来自行车\nv不那么",font=("Times",30,"normal"))
a.hideturtle()
turtle.done()
\ 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