Skip to content

Commit e6c4c57

Browse files
committed
hello example
1 parent 9c04786 commit e6c4c57

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

4장_구조와_모듈/hello.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
hello = "hello"
2+
3+
def world():
4+
return "world"
5+
6+
if __name__ == '__main__':
7+
print(f"{__name__} 직접 실행됨.")
8+
else:
9+
print(f"{__name__} 임포트 됨.")
10+

0 commit comments

Comments
 (0)