def fprinthello
SyntaxError: invalid syntax
The correct syntax for a function definition in Python is:
def function_name(arguments):
# body of the function
Therefore, the correct code for the above function would be:
def f():
print('hello')
原文地址: https://www.cveoy.top/t/topic/fgZ3 著作权归作者所有。请勿转载和采集!