初学者呆瓜 发表于 2022-9-26 15:23:59

123

orangemax7 发表于 2022-9-29 09:31:43

1

敢敢的小波 发表于 2022-10-15 10:41:20

{:5_103:}

oneyuer1 发表于 2022-10-15 14:31:43

我要看回文数

jack6666 发表于 2022-10-15 16:17:57

1

无理想的闲鱼 发表于 2022-10-15 20:28:40

x = input("输入:")
l = len(x)
judge = True
for i in range(l-1):
    if judge == True:
      if x == x:
            judge = True
      else:
            judge = False
            break
    else:
      print('不是回文数')
if judge == True:
    print("是回文数")
else:
    print("不是回文数")
   

C0401040214 发表于 2022-10-26 13:53:15

{:9_241:}

13978074582 发表于 2022-10-30 18:54:50

1

hjbhkjsjhd 发表于 2022-11-1 16:30:46

a

刘世杰 发表于 2022-11-2 18:58:48

c

zzzu 发表于 2022-11-17 15:14:44

2

branda 发表于 2022-11-17 20:05:07

if x[:]==x[::-1]:

小白学编程aaa 发表于 2022-11-20 14:48:30

啊啊啊

VVvvVV1 发表于 2022-11-20 20:31:24

🤔

lywxc168 发表于 2022-11-21 03:25:26

# 非自定义函数方法
str=input("请输入:")
str = str*2 #强制偶数位
i = 0
while i<len(str):
    if str != str[-1-i]:
      print('不是回文。。。')
      break
    else:
      i += 1
else:
    print('是回文。。。')

客天恺 发表于 2022-11-22 22:33:35

1

rpwin 发表于 2022-11-24 21:55:35

test

努力学习的阿郡 发表于 2022-12-6 14:38:28

1

巅峰老甲鱼1 发表于 2023-1-7 16:41:42

淋雨一直走

zhangqinwu 发表于 2023-1-12 09:26:41

看答案
页: 3 4 5 6 7 8 9 10 11 12 [13] 14 15 16 17
查看完整版本: 判断一个整数是否为回文数?