Skip to content

Instantly share code, notes, and snippets.

@yunho0130
Created December 11, 2016 02:39
Show Gist options
  • Select an option

  • Save yunho0130/94718540f0496fd847e5dceb7cb694b8 to your computer and use it in GitHub Desktop.

Select an option

Save yunho0130/94718540f0496fd847e5dceb7cb694b8 to your computer and use it in GitHub Desktop.
161211 CM Korea
# coding=utf-8
a = 0 # 전역변수
def f(x): # x는 매개변수
a = 1 # 지역변수
x = x+2
f(2)
print a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment