def example(function):
if input() == "Hello there!":
#at this point I want to call the function entered in the tuples
무슨 뜻인지의 예 :파이썬 기능
def example(function):
if input() == "Hello there!":
#do the function here
def Printer(What_to_print):
print(What_to_print + "Just an example")
example(Printer)
이 possibe되고, 이렇게 거기 단점이있다?
다른 함수의 인수로 함수를 전달한다는 의미입니까? 네, 가능하고 아주 일반적입니다. – bereal
네, 전적으로 가능합니다. – Harrison
'이 시점에서 함수를 호출하고 싶습니다. '- 그렇게하니? –