希丰展,使md
by ThreePlusSeven @ 2020-02-09 15:26:41
```
isbn=input()
isbn0=isbn
isbn=isbn.replace('-','')#修改后的
result=0
for number in range(0,9):
result+=int(isbn[number])*(number+1)
result%=11
if result==10:
result=str('X')
if str(result)==str(isbn[-1]):
print('Right')
else:
print(isbn0[:-2],str(result),sep='-')
```
这是啥语言?(蒟蒻没见过)
by Andysun06 @ 2020-02-09 15:27:57
@[ThreePlusSeven](/user/229067) 大佬可以详细一点吗,嘿嘿
by 柳卿云 @ 2020-02-09 15:28:19
@[Andysun06](/user/70299) python
z=有几个缩进在这儿没打出来,
源程序上是对的
by 柳卿云 @ 2020-02-09 15:30:43
@[Andysun06](/user/70299) 这是python
@[柳卿云](/user/173381) 翻到本页底端你会发现这句话
>希望更丰富的展现?使用Markdown
否则代码很丑
另:等下我看看问题
by ThreePlusSeven @ 2020-02-09 15:31:25
isbn=input()
isbn0=isbn
isbn=isbn.replace('-','')#修改后的
result=0
for number in range(0,9):
result+=int(isbn[number])*(number+1)
result%=11
if result==10:
result=str('X')
if str(result)==str(isbn[-1]):
print('Right')
else:
print(isbn0[:-2],str(result),sep='-')
by 柳卿云 @ 2020-02-09 15:32:19
@[柳卿云](/user/173381) @ThreePlusSeven说:
希望更丰富的展现?[使用Markdown](https://www.luogu.com.cn/blog/luogu/how-to-use-markdown)
by Andysun06 @ 2020-02-09 15:34:24
@[ThreePlusSeven](/user/229067)
好嘞,,麻烦你了
by 柳卿云 @ 2020-02-09 15:34:58
```
isbn=input()
isbn0=isbn
isbn=isbn.replace('-','')#修改后的
result=0
for number in range(0,9):
result+=int(isbn[number])*(number+1)
result%=11
if result==10:
result=str('X')
if str(result)==str(isbn[-1]):
print('Right')
else:
print(isbn0[:-2],str(result),sep='-')
```
帮你发了
by Andysun06 @ 2020-02-09 15:35:02
@[Andysun06](/user/70299) 嗯???和我的程序有什么不一样的吗
by 柳卿云 @ 2020-02-09 16:10:30