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.
我有三个变量,每个变量都有一个数字,我试图将它们组合成一个变量。例如:
int1 = 5 int2 = 3 int3 = 8
所以结果是 number = 538
我试过 number = int1, int2, int3 但没有成功。
int number = 100 * int1 + 10 * int2 + int3;