第13275题
Python递归实现字符串反转函数,横线处应填哪段代码?
def fun(s):
    if len(s) <= 1:
        return s
    else:
        return _____________
x = "abcde"
print(fun(x))
A

fun(s[1:])

B

fun(s[1:]) + s[0]

C

fun(s[:1]) + s[0]

D

fun(s[:1])

提交0次 正确率0.00%
答案解析