Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 논문 작성
- 강화학습
- cnn
- mPLUG-2
- 모델 구조 변경
- 주식 용어정리
- 가중치 없이 모델 로드
- KOSMOS-2
- DeepNet
- 특정 layer 추출
- 모델 동결
- 주식
- 특정 layer 동결
- Multimodal Large Language Model
- mqtt
- layer 추출
- vsocde 익스텐션
- def validation
- 파라미터 수 확인
- 논문 작성 요령
- Video Understanding
- 모델 freeze
- 가상환경
- 파라미터 수
- MLLM
- Foundation Transformers
- def train
- 논문리뷰
- pretrained model layer
- Instruction dataset
Archives
- Today
- Total
시작은 미약하였으나 , 그 끝은 창대하리라
10. 숫자를 리스트(문자열,숫자) 로 변환하기 본문
a=int(input())
b=int(input())
c=int(input())
QQ=list(str(a*b*c)) # 리스트는 문자열이기 때문에 str을 사용해 문자열로 변환시켜 주고 list를 쓴다.
print(QQ)
213
345
241
['1', '7', '7', '0', '9', '8', '8', '5'] # 문자열로 리스트가 생성됨
--------------------------------------------------------------------------------
a=int(input())
b=int(input())
c=int(input())
d=a*b*c # int 형식임
list_1=list(map(int,str(d))) # 숫자를 각자리수의 list로 변환하기 // map(함수,리스트)
print(list_1) #/ 리스트는 문자열이어야함
213
345
241
[1, 7, 7, 0, 9, 8, 8, 5] #숫자(int)로 리스트가 생성됨
'새롭게 알게된_tech > 파이썬_tech' 카테고리의 다른 글
12.[파이썬] 폴더안의 모든 각각의 파일의 행의 개수 세기 (0) | 2022.11.05 |
---|---|
11. 데이터를 특정 개수로 묶기 (0) | 2022.09.18 |
9. list() 함수 (0) | 2022.01.27 |
8. 자료구조 _탐색알고리즘_DFS 와 BFS (0) | 2022.01.27 |
7. 출력문 print(sep='' , end='') (0) | 2022.01.26 |
Comments