def function1(): # declares function 2 as printing hello
print("hello")
def function2(): # declares function 2 as printing bye
print("bye")
def function3(): # declares function 3 as returning "Hi again", which is printed upon it being called.
return "Hi again"
function1() # will print hello
function2() # will print bye
print(function3()) # will return the value "Hi again" and then print it
虽然这是明显的重复,给你。你知道吗
希望这能为你澄清一切!你知道吗
相关问题 更多 >
编程相关推荐