일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Sqoop
- NPM
- hadoop
- R
- SPC
- GIT
- react
- 공정능력
- xPlatform
- window
- Eclipse
- 보조정렬
- Spring
- mapreduce
- SSL
- Python
- Express
- plugin
- tomcat
- SQL
- Android
- vaadin
- JavaScript
- Java
- es6
- MSSQL
- table
- mybatis
- Kotlin
- IntelliJ
- Today
- Total
목록전체 글 (661)
DBILITY
그냥 해봤다. 새로운 언어(?)의 사용법을 조금 익히면 항상 그렇다. text파일을 write mode로 여는 부분이 있고 1~46까지 6개의 무작위 번호를 추출하는 부분은 다음과 같다. >>> import random >>> random.sample(range(1,47),k=6) [37, 21, 2, 27, 31, 28] #결과가 오름차순으로 정렬이 안되어 있어 다음과 같이 sorted를 사용 >>> sorted(random.sample(range(1,47),k=6)) [11, 25, 29, 31, 41, 42] import random import re def lotto(game=5): ele_len: int = 6 NL: str = '\n' try: f = open('fortune_num.txt',..

requests Requests is a simple, yet elegant, HTTP library. >>> import requests >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass')) >>> r.status_code 200 >>> r.headers['content-type'] 'application/json; charset=utf8' >>> r.encoding 'utf-8' >>> r.text '{"type":"User"...' >>> r.json() {'disk_usage': 368627, 'private_gists': 484, ...} #image save imgRequest = requests.get(image..
binary는 mode에 b가 추가 됨 # archive write mode f = open('a.txt', encoding='utf-8', mode='w') f.write('나 --> 언제 왔냐?\n') f.write('너 --> 쪼끔 전에 왔다.\n') f.close() # archive append mode f = open('a.txt', encoding='utf-8', mode='a') f.write('나 --> 뭐하러 왔냐?\n') f.write('너 --> 내비~족구화! 길을 잘못 들어서..\n') f.write('나 --> 머더뻐꾹!\n') f.close() # archive read mode f = open('a.txt', encoding='utf-8', mode='r') w=f.read(..
require가 필요하다. 또는 결과는