Á¤¼ºÈÆ
    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] Á¶È¸ : 429 ´Ù¿î : 0   
 
¡â ÀÌÀü±Ûcode_8_6.py (±³Àç)
¡ä ´ÙÀ½±Ûlab_8_1.py (±³Àç)
Python for AI ½Ç½À°Ô½ÃÆÇ
¹øÈ£ ¨Ï Á¦ ¸ñ Á¶È¸ µî·ÏÀÏ
lAnaconda3 ¼³Ä¡
lColabTurtlePlus
l½Ç½À ¸ñ·Ï
lColab ½Ç½À
l½Ç½À ½Ã ÇлýµéÀÌ ÀÚÁÖÇÏ´Â ½Ç¼ö ¿¹µé
233 ¦¦❶ µµÀü¹®Á¦ 8.2 616 03-29
232    ¦¦❷ µµÀü¹®Á¦ 8.2 (¸ð¹ü ´ä¾È) 421 03-29
231 ¦¦❶ µµÀü¹®Á¦ 8.1 669 03-29
230    ¦¦❷ µµÀü¹®Á¦ 8.1 (¸ð¹ü ´ä¾È) 369 03-29
229 ¦¦❶ lch8.ipynb (¿¹Á¦ Àüü) 814 03-01
228    ¦¦❷ l½Ç½À¼ö¾÷ ¿¹Á¦ 161 05-18
227 ¦¦❶ lcode_8_10.py (±³Àç) 384 02-21
226    ¦¦❷ lcode_8_10_3.py (±³Àç) 358 02-21
225    ¦¦❷ lcode_8_10_2.py (±³Àç) 364 02-21
224    ¦¦❷ lcode_8_10_1.py (±³Àç) 387 02-21
223 ¦¦❶ llab_8_4.py (±³Àç) 372 02-21
222 ¦¦❶ lcode_8_9.py (±³Àç) 400 02-21
221 ¦¦❶ llab_8_3.py (±³Àç) 401 02-21
220 ¦¦❶ lcode_8_6.py (±³Àç) 398 02-21
219 ¦¦❶ llab_8_2.py (±³Àç) 429 02-21
218 ¦¦❶ llab_8_1.py (±³Àç) 416 02-21
217 ¦¦❶ lcode_8_2.py (±³Àç) 396 02-21
216 (7Àå) µ¥ÀÌÅ͸¦ ¸®½ºÆ®¿Í Æ©Ç÷Π¹­¾îº¸ÀÚ 669 02-19
215 ¦¦❶ ¨ÕµµÀü¹®Á¦ 7.5 561 03-29
214    ¦¦❷ µµÀü¹®Á¦ 7.5 (¸ð¹ü ´ä¾È) 409 03-29

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