s = input("请输入一个字符串:")
if len(s) > 31:
    print("您输入的字符串过长,请重新输入:")
else:
    l = len(s)
    print("字符串的长度:%d" % l)
    print(s[::-1])

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-31
  • 2021-10-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2021-06-12
相关资源
相似解决方案