1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # # µû¶óÇÏ¸ç ¹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020) # LAB 4-8 ÄÄÇ»ÅÍ¿Í ½ÂºÎÂ÷±â °ÔÀÓÀ» ¸¸µé¾îº¸ÀÚ, 110ÂÊ # import random n = random.randint(1, 3) # ·£´ýÇÏ°Ô 1, 2, 3 Áß ÇϳªÀÇ °ªÀ» »ý¼º if n == 1: computer_choice = "¿ÞÂÊ" elif n == 2: computer_choice = "Áß¾Ó" else: computer_choice = "¿À¸¥ÂÊ" user_choice = input("¾îµð¸¦ °ø°ÝÇϽðھî¿ä?(¿ÞÂÊ, Áß¾Ó, ¿À¸¥ÂÊ) : ") if computer_choice == user_choice: print("°ø°Ý¿¡ ½ÇÆÐÇϼ̽À´Ï´Ù.") else : print("ÃàÇÏÇÕ´Ï´Ù!! °ø°Ý¿¡ ¼º°øÇÏ¿´½À´Ï´Ù.") print('ÄÄÇ»ÅÍÀÇ ¼öºñÀ§Ä¡ :', computer_choice) | cs |