python 19th days [list comprehension & File IO]

# -*- coding: utf-8 -*- """ Spyder Editor This is a temporary script file. """ line = '1 2 3 4 5' fields = line.split() total = 0 for field in fields:     total += int(field) print(total) sigma = sum(
相關文章
相關標籤/搜索