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
- material3
- databinding error
- 터치이벤트 순서
- {"msg":"cannot find method
- 원생성
- @provides @binds 차이
- rangeslider
- Python
- 안드로이드 다이얼로그 오류
- WindowManager$BadTokenException
- 도형생성
- 안드로이드
- dispatchTouchEvent
- 지오코더
- onIntercepterTouchEvent
- Android
- 터치순서
- dualthumbseekbar
- Could not find method
- 레트로핏
- 원이동
- android compose
- android.view.WindowManager.BadTokenException
- 힐트
- multiseekbar
- Java
- 듀얼시크바
- isFinishing()
- databinding xml
- [databinding]
Archives
- Today
- Total
목록Python (2)
개발관련일지
MYSQL ] primary key 초기화하기
파이썬에서 pk(AUTO_INCREMENT)를 초기화 해줘야 할 일이 생겨서 찾아봄 커리문은 ALTER TABLE [TABLE명] AUTO_INCREMENT = [시작할 값]; 입력하면됨 파이썬 코드상으로는 connect = pymysql.connect("아이피","아디","비번","디비", charset='utf8') cursor = connect.cursor() reset_pk = "ALTER TABLE 테이블 AUTO_INCREMENT = 1" cursor.execute(reset_pk) connect.commit()
개발기록/DB
2020. 4. 20. 23:04
PY ] 파이썬 포메팅 ( formatting )
파이썬으로 mysql CRUD query 찾다보니 포메팅 방식을 사용하고 있어서 찾아봄 format > 사전적의미 > 구성방식 , 책의 판형 , 컴퓨터포멧 서식 formatting > 사전적의미 > 서식 설정 퍼센트 연산자를 사용해 문자열에 숫자, 문자열에 대입을 시켜줌 %d %f %s 을 사용함 >> C언어에서 사용해서 C방식이라고 부른다함 str = "hello %s" % "world" print(str) #hello world int = '%d %d' % (1, 2) print(int) #1 2 float = '%f' % 1.414 print(float) #1.414000 파이썬에선 format() 연산자를 제공함 format_str = 'hello {}'.format('world') print(f..
개발기록/PYTHON
2020. 4. 20. 21:22