n 是变量,但在这种情况下,customer[n]["amount"] = 300 并不重要,但是当我尝试添加 400 时,结果显示为 300400。我需要帮助。提前感谢任何帮助我的人。
textwindow.writeline("How much do you want to add?")
adding = TextWindow.ReadNumber()
trying to reassign the string customer[n]["amount"]
customer[n]["amount"] = customer[n]["amount"] + adding
TextWindow.WriteLine("Your new amount is: " + customer[n]["amount"])