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



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
def print_counter():
    global counter      # ÇÔ¼ö ¿ÜºÎÀÇ Àü¿ªº¯¼ö counter¸¦ »ç¿ëÇϰڴٴ ¼±¾ð
    counter = 200
    print('counter =', counter)  # ÇÔ¼ö ³»ºÎÀÇ counter °ª
 
counter = 100
print_counter()
print('counter =', counter)      # ÇÔ¼ö ¿ÜºÎÀÇ counter °ª
 
################################################################
 
 
def calculate_area(radius):
    global area
    area = 3.14 * radius ** 2
    return
 
 
area = 0
= float(input("¿øÀÇ ¹ÝÁö¸§: "))
calculate_area(r)
print(area)
cs

  µî·ÏÀÏ : 2022-02-21 [00:04] Á¶È¸ : 696 ´Ù¿î : 0   
 
¡â ÀÌÀü±Ûcode_6_10_1.py (±³Àç)
¡ä ´ÙÀ½±Ûcode_6_9_2.py (±³Àç)
Python for AI ½Ç½À°Ô½ÃÆÇ
¹øÈ£ ¨Ï Á¦ ¸ñ Á¶È¸ µî·ÏÀÏ
lAnaconda3 ¼³Ä¡
lColabTurtlePlus
l½Ç½À ¸ñ·Ï
lColab ½Ç½À
l½Ç½À ½Ã ÇлýµéÀÌ ÀÚÁÖÇÏ´Â ½Ç¼ö ¿¹µé
181 ¦¦❶ llab_6_7.py (±³Àç) 842 02-21
180 ¦¦❶ lcode_6_12.py (±³Àç) 845 02-21
179 ¦¦❶ llab_6_6.py (±³Àç) 766 02-21
178 ¦¦❶ llab_6_5.py (±³Àç) 715 02-21
177 ¦¦❶ llab_6_4.py (±³Àç) 764 02-21
176 ¦¦❶ llab_6_3.py (±³Àç) 847 02-21
175 ¦¦❶ lcode_6_11.py (±³Àç) 1224 02-21
174 ¦¦❶ lcode_6_10.py (±³Àç) 779 02-21
173    ¦¦❷ lcode_6_10_2.py (±³Àç) 706 02-21
172    ¦¦❷ lcode_6_10_1.py (±³Àç) 736 02-21
171 ¦¦❶ lcode_6_9.py (±³Àç) 696 02-21
170    ¦¦❷ lcode_6_9_2.py (±³Àç) 645 02-21
169    ¦¦❷ lcode_6_9_1.py (±³Àç) 692 02-21
168 ¦¦❶ lcode_6_8.py (±³Àç) 697 02-20
167    ¦¦❷ code_6_8.py (Ãß°¡) 644 04-04
166    ¦¦❷ lcode_6_8_2.py (±³Àç) 680 02-21
165    ¦¦❷ lcode_6_8_1.py (±³Àç) 653 02-21
164 ¦¦❶ llab_6_2.py (±³Àç) 790 02-20
163 ¦¦❶ llab_6_1.py (±³Àç) 757 02-20
162 ¦¦❶ lcode_6_7.py (±³Àç) 825 02-20

[1] [Prev]-[11][12][13][14][15][16][17][18][19][20]