Search
Main Menu
Login
Username:

Password:

Remember me



Lost Password?

Register now!
Who's Online
22 user(s) are online (8 user(s) are browsing Jobs & News)

Members: 0
Guests: 22

more...

Pass Function as Function Parameter


How to pass function objects as function parameters? You can pass function objects like any other types of objects as parameters of other functions. For example, >>> def x(): ... print("Hello world!") ... >>> def addVersion(f): ... f.version = "1.0" ... f.au... - Rank: 150; Updated: 2018-02-08 02:34:58 -> Source

URL: http://www.fyicenter.com/modules/planet/view.article.php?422937
Trackback: http://www.fyicenter.com/modules/planet/trackback.php?422937

Copyright (c) FYIcenter.com