判断四回数,哪里不对?

题目总版

希望更丰富的展现?使用Markdown
by 约瑟夫用脑玩 @ 2021-10-17 23:26:02


@[约瑟夫用脑玩](/user/158948) 用python编写,使用markdown什么意思?
by HEziyue @ 2021-10-17 23:27:57


```python n = int(input()) if n<999 and n>=10000: print('no') elif n == ((n//1000)+(n//10%10)*10+(n//10%10)*100+(n%10)*1000): print('yes') else: print('no') ```
by HEziyue @ 2021-10-17 23:31:08


@[HEziyue](/user/566075) <=999吧
by 违规用户名76G!ihcm @ 2021-10-18 02:17:24


而且第三个括号是不是//100
by 违规用户名76G!ihcm @ 2021-10-18 02:18:18


```python n = int(input()) if n<=999 and n>=10000: print('no') elif n == ((n//1000)+(n//100%10)*10+(n//10%10)*100+(n%10)*1000): print('yes') else: print('no') ```
by HEziyue @ 2021-10-19 20:35:17


怎么还是不能通过?请指教!
by HEziyue @ 2021-10-19 20:35:47


|