里面的任何东西
" "都会变成
String。和
string+
Int=。
String例如
"2 + 2" + 3 + 4
你会得到
2 + 234
在你的问题上
"2 + 2" + 3 + 4 +"hello 34" + 2 * 4 //i added '+' between '4' and 'hello' since there is an error in expression
将被评估为:
1. output = "2 + 2" + 3 + 4 +"hello 34" + 2 * 42. output = "2 + 2" + 3 + 4 +"hello 34" + 8 //operation '*' evaluated first3. output = "2 + 23" + 4 +"hello 34" + 84. output = "2 + 234" +"hello 34" + 85. output = "2 + 234hello 34" + 86. output = "2 + 234hello 348"



