Commit 6c97a0f9 by BellCodeEditor

auto save

parent 72da1a93
Showing with 44 additions and 17 deletions
a=input("钱数")
b=input("数量")
c=input("单价")
if int(a)>=int(b)*int(c):
print("True")
else:
print("False")
\ No newline at end of file
import turtle
turtle.setheading(110)
turtle.pensize(5)
turtle.color("red","yellow")
turtle.begin_fill()
for i in range(5):
turtle.forward(150)
turtle.left(144)
turtle.end_fill()
turtle.done()
\ No newline at end of file
a=input("请输入你的鞋码")
b=(int(a)+10)/2
print("你的脚长是"+str(b)+"厘米")
\ No newline at end of file
import random import turtle
while True: turtle.pensize(10)
player=input("你要出(石头/剪刀/布):") turtle.backward(90)
print("玩家出:"+player) for i in range(3):
a=["石头","剪刀","布"] turtle.forward(180)
computer=random.choice(a) turtle.left(120)
print("电脑出:"+computer) turtle.forward(90)
if player in a: turtle.left(90)
if player==comtuter: turtle.forward(150)
print("平局") turtle.penup()
elif ((player=="石头" and computer=="剪刀")or(player=="剪刀" and computer=="布")or(player=="布" and computer=="石头")): turtle.goto(0,0)
print("你赢了") turtle.pendown()
else: turtle.right(90)
print("你输了") turtle.color("black","blue")
else: turtle.begin_fill()
print("----请重新输入----") turtle.circle(50)
\ No newline at end of file turtle.end_fill()
turtle.left(90)
turtle.forward(150)
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