| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 소프트웨어
- 데이터구조
- 컴퓨터공학
- 컴퓨터비전
- 딥러닝
- 머신러닝
- 웹개발
- 데이터베이스
- 네트워크
- 인공지능
- 네트워크보안
- 보안
- Yes
- 프로그래밍
- 빅데이터
- 자바스크립트
- 사이버보안
- 자료구조
- 데이터과학
- 클라우드컴퓨팅
- 알고리즘
- 컴퓨터과학
- 파이썬
- 데이터분석
- 소프트웨어공학
- 버전관리
- I'm Sorry
- 디자인패턴
- springboot
- 프로그래밍언어
- Today
- Total
목록전체 글 (1964)
스택큐힙리스트
나는 Python의 csv.writer()를 사용하여 트윗의 텍스트를 csv 파일에 저장하기 위해 tweepy를 사용했지만, 저장하기 전에 텍스트를 utf-8로 인코딩해야했습니다. 그렇지 않으면 tweepy에서 이상한 오류가 발생합니다. 지금은 텍스트 데이터가 다음과 같이 저장되어 있습니다: b'Lorem Ipsum\xc2\xa0Assignment ' 다음 코드를 사용하여 이를 디코딩하려고 시도했지만 (다른 열에 더 많은 데이터가 있으므로 텍스트는 3번째 열에 있음): with open('data.csv','rt',encoding='utf-8') as f: reader = csv.reader(f,delimiter=',') for row in reader: print(row[3]) 하지만 텍스트가 디코딩되..
아래와 같이 코드가 있습니다. with open(Elastic_Secret_File) as f: yaml_data = yaml.safe_load(f) for key, value in dict(yaml_data[xxx][xxxx][xxxx][xxxx][xxxxx]).items(): Ela_User = value[clusterCredentials][username] Ela_Pass = str(value[clusterCredentials][password].replace(', )) #Ela_Pass = value[clusterCredentials][password] Ela_Host = value[urls] print (Ela_Pass) es_secret_data = toml.load(./secrets/elas..
나는 다음과 같은 오류를 받습니다: csv_file_encoded = TextIOWrapper(csv_file.file, encoding='utf-8') AttributeError: 'SpooledTemporaryFile' 개체에는 'readable' 속성이 없습니다. UploadFile을 bytes로 변경했습니다: @app.post(/uploadsequence/) async def upload_sequence(csv_file: bytes = File(...), db = Depends(get_db)): csv_file_encoded = TextIOWrapper(csv_file, encoding='utf-8') csv_reader = csv.DictReader(csv_file_encoded) for row..
Google Colab에서 FastAPI / Uvicorn을 사용하여 로컬 웹 앱을 실행하려고합니다. Flask 앱 샘플 코드 중 일부와 같은 방식으로 작동하지 않습니다. 이를 수행 할 수있는 사람이 있었습니까? 감사합니다. FastAPI 및 Uvicorn 설치 완료 !pip install FastAPI -q !pip install uvicorn -q 샘플 앱 from fastapi import FastAPI app = FastAPI() @app.get(/) async def root(): return {message: 안녕하세요} 실행 시도 #시도 1 if __name__ == __main__: uvicorn.run(/content/fastapi_002:app, host=127.0.0.1, port=5..