T4:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
这题我们可以用C++的for循环去拼接字符,或者用Pythona[-1:0:-1] + a[0]的索引方式将字符串反转字符串
C++代码:
PYTHON代码: