diff --git a/diy1.py b/diy1.py new file mode 100644 index 0000000..7f679b6 --- /dev/null +++ b/diy1.py @@ -0,0 +1,16 @@ +player=input("qingchuquan(shitou/jiandao/bu)") +print("wangjiachuquan"+player) +import random +list["jiadao","shitou","bu"] +computer=random.choice(list) +print(computer) +if player==computer: + print("pinju") +elif player=="shitou"and computer=="jiadao": + print("you win") +elif player=="jiadao"and computer=="bu": + print("you win") +elif player=="bu"and computer=="shitou": + print("you win") +else: + print("you lose") \ No newline at end of file diff --git a/sad.py b/sad.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/sad.py