def reverse(text_arrange):
len_text = len(text_arrange)
dec_text = ""
for i in range(1, len_text + 1):
# print(i)
dec_text += text_arrange[-i]
print(f"反向输出{dec_text}")
reverse("12345678")
reverse("abcdefg")
def reverse(text_arrange):
len_text = len(text_arrange)
dec_text = ""
for i in range(1, len_text + 1):
# print(i)
dec_text += text_arrange[-i]
print(f"反向输出{dec_text}")
reverse("12345678")
reverse("abcdefg")