【发布时间】:2018-11-25 21:39:07
【问题描述】:
考虑下面的代码。
void main() {
int num = 5;
print('The number is ' + num);
}
当我尝试打印变量 num 的值时,出现异常:The argument type 'int' can't be assigned to the parameter type 'String'。
如何打印数字?
【问题讨论】:
标签: dart concatenation string-concatenation