Commit 51e10c01 by BellCodeEditor

save project

parent c8794832
Showing with 10 additions and 2 deletions
while True: while True:
aa=input('你出什么') aa=input('你出什么')
if aa=='p':
break
print('玩家出拳'+aa) print('玩家出拳'+aa)
import random import random
list1=["石头",'剪刀',"布"] list1=["石头",'剪刀',"布"]
...@@ -12,8 +14,7 @@ while True: ...@@ -12,8 +14,7 @@ while True:
print('玩家赢') print('玩家赢')
else: else:
print('你输了') print('你输了')
else: elif aa=='p':
if aa==p:
break break
else: else:
print('请好好出拳') print('请好好出拳')
import turtle
import turtle
pen=turtle.Pen()
pen.write("鬼\n怕鬼\n不怕鬼\n我不怕鬼",font=('Times',30,"normal"))
pen.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