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.
如何更改标签以使显示的文本依赖于其他方法的变量?例如,我想要类似 string playerOne = "Player", computerOne = "Computer";
如果变量 = 0 更改标签以显示 playerOne 如果变量 = 1 更改标签以显示 computerOne 则从方法中有一个外部变量
我到底该怎么做这样的事情?