📜  python代码示例中更改变量值和函数内部列表之间的区别

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

代码示例1
number_1 = 5
number_2 = 10

def multiply_and_add(number_1, number_2):
    number_1 = number_1 * 10
    number_2 = number_2 * 10
    return number_1 + number_2

a_sum = multiply_and_add(number_1, number_2)
print(a_sum)
print(number_1)
print(number_2)