我从pyhton函数开始,我想我没有得到什么。当我运行程序时,没有错误,或者语法错误,通常在python中是红色的。但两种方法都不起作用,我刚得到答案“函数hello at 0x000001ebf0c97b70”。我认为这与语法有关。
def hello(name): # <----- parametro hello('Alice') # <----- argumento if name == 'Alice': return 'holaaa alice' print(hello)