Technic/Python

Split 한 데이터의 형 변환하고 합하는거

등촌동 꼬북이 2021. 1. 24. 23:49
# str to int
sum(list(map(int, 변수.split("+"))))
저작자표시 (새창열림)