原创 python異常處理練習1

#test 猜數字#電腦隨機生成1~100隨機數,用戶輸入一個數字,電腦提示用戶大或者小,猜錯,繼續提示;猜對,則程序終止。 #coding:utf-8 import random num = random.randint(0,100) #