print()
函数:这个函数用于将指定的值打印出来。它可以将文本、变量或其他表达式输出到终端。例如:
name = "Alice" age = 25 print("My name is", name, "and I am", age, "years old.")
输出:
My name is Alice and I am 25 years old.
print()
函数:这个函数用于将指定的值打印出来。它可以将文本、变量或其他表达式输出到终端。例如:name = "Alice" age = 25 print("My name is", name, "and I am", age, "years old.")
输出:
My name is Alice and I am 25 years old.