Python, 배수의 값을 구하기

sunj - Jul 17 - - Dev Community
    for i in range(80, int(argv[2])+1):
        if int(argv[2]) % i == 0:
            s_i = i
            if i % 10 != 0:
                s_i = str(i).replace('0', '')
            if i % 10 == 0:
                c_i = str(i).count('0')
                if c_i > 1:
                    s_i = str(i).replace('0', '', c_i-1)
                else:
                    s_i = str(i).replace('0', '')
            if int(s_i) <= 30:
                print(s_i + "일")
Enter fullscreen mode Exit fullscreen mode
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player