Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 79f7c23

Browse files
Fonksiyon Haritası
1 parent 18be511 commit 79f7c23

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

‎Phyton Sample Codes/20180106-FuncMap.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
#Bu Kod Yapısı sayesinde daha kolay foksiyonlarla işlemler gerçekleştirilebilir.
3+
4+
5+
def func1():
6+
7+
print("1.")
8+
9+
10+
def func2():
11+
print("2.")
12+
13+
funcmap = {1 : func1, 2 : func2}
14+
15+
def somefunc(a):
16+
funcmap[a]()
17+
18+
a= int(input(">>>>>"))
19+
20+
somefunc(a)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /