diff --git a/diy1.py b/diy1.py
index ad33bc4..de81f6c 100644
--- a/diy1.py
+++ b/diy1.py
@@ -5,9 +5,12 @@ palyer=input("玩家出拳")
 print(palyer+"玩家出拳结果")
 computer=random.choice(list)
 print("电脑出拳结果"+computer)
-if palyer==computer:
-    print("平局")
-elif (palyer=="石头" and computer=="剪刀") or (palyer=="剪刀" and computer=="布") or (palyer=="布" and computer=="石头"):  
-    print("你赢了")
+if palyer in list:
+    if palyer==computer:
+        print("平局")
+    elif (palyer=="石头" and computer=="剪刀") or (palyer=="剪刀" and computer=="布") or (palyer=="布" and computer=="石头"):  
+        print("你赢了")
+    else:
+        print("你输了")
 else:
-    print("你输了")
\ No newline at end of file
+    print("输入有误")
\ No newline at end of file