怎么将将字符串' abcdefg'使用函数的方式进行倒序输出。
收起
def restr(): s1 = 'abcdefg' return s1[::-1] s = restr() print(s)
报告相同问题?