Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I'm wondering how to change a variable from a user input.. For example
new = raw_input("enter a new variable for x:") x = new
在我看来,你正在做的事情似乎会奏效,尽管它可以被简化。
x=raw_input("New value for x: ")
应该改变x输入的值。
x