코딩도장

코딩도장

변경이력

돌아가기
2 24개 문자 삭제

2016年04月06日 21:18

lcs901221

python 3.5.1+ 로 작성했습니다. ```{.python} temp=[0,0,0,0,0,0,0,0,0,0] # 리스트 생성 for num in range(1,1001): #0~1000 for tp in (str(num)): # 각 숫자를 배열로 취급하기 위해 string화 시킴 temp[int(tp)]+=1 # 넣을땐 다시 int로 해서 temp에 넣음 for i in range(10): # 출력 print(i,":",temp[i],"개") ```
python 3.5.1+ 로 작성했습니다. ```{.python} temp=[0,0,0,0,0,0,0,0,0,0] # 리스트 생성 for num in range(1,1001): #0~1000 for tp in (str(num)): # 각 숫자를 배열로 취급하기 위해 string화 시킴 temp[int(tp)]+=1 # 넣을땐 다시 int로 해서 temp에 넣음 for i in range(10): # 출력 print(i,":",temp[i],"개") ```
python 3.5.1+ 로 작성했습니다. ```{.python} temp=[0,0,0,0,0,0,0,0,0,0] # 리스트 생성 for num in range(1,1001): #0~1000 for tp in (str(num)): # 각 숫자를 배열로 취급하기 위해 string화 시킴 temp[int(tp)]+=1 # 넣을땐 다시 int로 해서 temp에 넣음 for i in range(10): # 출력 print(i,":",temp[i],"개") ```
1 Original

2016年04月06日 21:17

lcs901221

python 3.5.1+ 로 작성했습니다. ```{.python} temp=[0,0,0,0,0,0,0,0,0,0] # 리스트 생성 for num in range(1,1001): #0~1000 for tp in (str(num)): # 각 숫자를 배열로 취급하기 위해 string화 시킴 temp[int(tp)]+=1 # 넣을땐 다시 int로 해서 temp에 넣음 for i in range(10): # 출력 print(i,":",temp[i],"개") ```
python 3.5.1+ 로 작성했습니다. ```{.python} temp=[0,0,0,0,0,0,0,0,0,0] # 리스트 생성 for num in range(1,1001): #0~1000 for tp in (str(num)): # 각 숫자를 배열로 취급하기 위해 string화 시킴 temp[int(tp)]+=1 # 넣을땐 다시 int로 해서 temp에 넣음 for i in range(10): # 출력 print(i,":",temp[i],"개") ```
코딩도장

코딩도장은 프로그래밍 문제풀이를 통해서 코딩 실력을 수련(Practice)하는 곳입니다.

코딩도장 © 2014 · 문의 [email protected]
피드백 · 개인정보취급방침 · RSS

AltStyle によって変換されたページ (->オリジナル) /