如果你的变量类型是str类型的话,那么就直接如下 i='hello'; j='end'; c=[i,'*',j,'=']; sprintf(c) 如果你的变量类型是int类型的话,那么需要把int类型变成str……