📜  免费下载 spyder for python 3.9 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:21.346000             🧑  作者: Mango

代码示例1
def verif_isbn(code):
        a = int(code[0])*10
        b = int(code[0])*9
        c = int(code[0])*8
        d = int(code[0])*7
        e = int(code[0])*6
        f = int(code[0])*5
        g = int(code[0])*4
        h = int(code[0])*3
        i = int(code[0])*2
        result = a+b+c+d+e+f+g+h+i
        reste = result%11
        return reste