📜  python中的打印与返回-任何代码示例

📅  最后修改于: 2022-03-11 14:57:15.940000             🧑  作者: Mango

代码示例1
Use print when you want to show a value to a human. return is a keyword. When a return statement is reached, Python will stop the execution of the current function, sending a value out to where the function was called. Use return when you want to send a value from one point in your code to another.