擅长:python、mysql、java
<p>这可以回答您的问题:外部函数中的嵌套函数change变量不起作用。基本上,您需要在gamerun中分配Rollnop1=0和Rollnop2=0,并在roll1&roll2中声明它们为非本地的,然后再尝试更改它们的值。你知道吗</p>
<p>–DarrylG非常感谢你和所有帮助过你的人。你知道吗</p>
<p>这里有更多
<a href="https://stackoverflow.com/questions/41278818/nested-function-change-variable-in-an-outside-function-not-working">nested function change variable in an outside function not working</a></p>