반응형
250x250
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 |
Tags
- AWS CI/CD 구축하기
- JavaScript
- Spring Error
- Python
- Airflow
- Kafka
- Spring
- Jenkins
- bootstrap
- codebuild
- or some instances in your deployment group are experiencing problems.
- VPN
- 도커
- java bigdecimal
- kubeflow
- node
- chart.js
- aws cicd
- SQL
- COALESCE
- codedeploy
- PostgreSQL
- Flux
- IntelliJ
- redis
- chartjs
- aws
- codepipeline
- docker
- codedeploy error
Archives
- Today
- Total
Small Asteroid Blog
[python] not all arguments converted during string formatting 본문
728x90
파이썬에서 문자열 포매팅을 하는데 생긴 오류이다.
not all arguments converted during string formatting
문자열 형식화 중에 모든 인수가 변환되지는 않는다.
%s 로 변수가 들어올 자리 수와, 넣고자하는 변수의 수가 맞지 않아 발생한 에러로그로
( ) 안에 있는 변수의 개수를 맞춰서 사용해주면 된다.
예시
# ok
cursor.execute("insert into tablename (company,title,date,link) values(%s,%s,%s,%s)",val_insert)
# error
cursor.execute("insert into tablename (company,title) values(%s,%s,%s,%s)",val_insert)
728x90
반응형