Á¤¼ºÈÆ
    lab_8_2.py (±³Àç)
  http://itsys.hansung.ac.kr/cgi-bin/onlineTest/viewpy4AI/onlinePy4AI.cgi?source=src/py/Ch08/lab_8_2.py



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#
# µû¶óÇϸ砹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020)
# LAB 8-2 ¿µÇÑ »çÀüÀ» ¸¸µé¾î º¸ÀÚ, 205ÂÊ
#
print("»çÀü ÇÁ·Î±×·¥ ½ÃÀÛ... Á¾·á´Â q¸¦ ÀÔ·Â")
dictionary = {}
 
while True:
    st = input('$ ')
    command = st[0]       # Ã¹ ÀԷ ¹®ÀÚ¸¦ ÃßÃâÇÑ´Ù
    if command == '<':
        st = st[1:]
        inputStr = st.split(':')
        if len(inputStr) < 2 :
            print('ÀԷ ¿À·ù°¡ ¹ß»ýÇß½À´Ï´Ù.')
        else:
            dictionary[inputStr[0].strip()] = inputStr[1].strip()
    elif command == '>':
        st = st[1:]
        inputStr = st.strip()
        if inputStr in dictionary:
            print(dictionary[inputStr])
        else :
            print('{}°¡ »çÀü¿¡ ¾ø½À´Ï´Ù.'.format(inputStr))
    elif command == 'q':
       break
    else :
        print('ÀԷ ¿À·ù°¡ ¹ß»ýÇß½À´Ï´Ù.')
print("»çÀü ÇÁ·Î±×·¥À» Á¾·áÇÕ´Ï´Ù.")
cs

  µî·ÏÀÏ : 2022-02-21 [01:57] Á¶È¸ : 643 ´Ù¿î : 0   
 
¡â ÀÌÀü±Ûcode_8_6.py (±³Àç)
¡ä ´ÙÀ½±Ûlab_8_1.py (±³Àç)
Python for AI ½Ç½À°Ô½ÃÆÇ
¹øÈ£ ¨Ï Á¦ ¸ñ Á¶È¸ µî·ÏÀÏ
lAnaconda3 ¼³Ä¡
lColabTurtlePlus
l½Ç½À ¸ñ·Ï
lColab ½Ç½À
l½Ç½À ½Ã ÇлýµéÀÌ ÀÚÁÖÇÏ´Â ½Ç¼ö ¿¹µé
240 ¦¦❶ µµÀü¹®Á¦ 8.2 834 03-29
239    ¦¦❷ µµÀü¹®Á¦ 8.2 (¸ð¹ü ´ä¾È) ºñ°ø°³ 644 03-29
238 ¦¦❶ µµÀü¹®Á¦ 8.1 854 03-29
237    ¦¦❷ µµÀü¹®Á¦ 8.1 (¸ð¹ü ´ä¾È) ºñ°ø°³ 569 03-29
236 ¦¦❶ lch8.ipynb (¿¹Á¦ Àüü) 1089 03-01
235    ¦¦❷ l½Ç½À¼ö¾÷ ¿¹Á¦ 269 05-18
234 ¦¦❶ lcode_8_10.py (±³Àç) 580 02-21
233    ¦¦❷ lcode_8_10_3.py (±³Àç) 547 02-21
232    ¦¦❷ lcode_8_10_2.py (±³Àç) 598 02-21
231    ¦¦❷ lcode_8_10_1.py (±³Àç) 571 02-21
230 ¦¦❶ llab_8_4.py (±³Àç) 570 02-21
229 ¦¦❶ lcode_8_9.py (±³Àç) 601 02-21
228 ¦¦❶ llab_8_3.py (±³Àç) 623 02-21
227 ¦¦❶ lcode_8_6.py (±³Àç) 622 02-21
226 ¦¦❶ llab_8_2.py (±³Àç) 643 02-21
225 ¦¦❶ llab_8_1.py (±³Àç) 646 02-21
224 ¦¦❶ lcode_8_2.py (±³Àç) 629 02-21
223 (7Àå) µ¥ÀÌÅ͸¦ ¸®½ºÆ®¿Í Æ©Ç÷Π¹­¾îº¸ÀÚ 1034 02-19
222 ¦¦❶ ¨ÕµµÀü¹®Á¦ 7.5 746 03-29
221    ¦¦❷ µµÀü¹®Á¦ 7.5 (¸ð¹ü ´ä¾È) ºñ°ø°³ 637 03-29

[1][2][3][4][5][6][7][8][9][10]-[Next][19]