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.
我想声明一个有序对数组,其中对的第一个元素是正整数,第二个是数学函数的值,例如正弦。我可以在类中使用循环设置值,但似乎我可以通过声明来做到这一点。那可能吗; 对语法有什么建议?