MOOC嵩天python期末測試編程題彙總

2-1 快樂數字python def snum(num): strnum = str(num) sum = 0 b = [int(x) for x in strnum] for i in b: sum += i**2 return sum def main(): a = input() num = eval(a) c
相關文章
相關標籤/搜索