chenchang12

导航

随笔分类 -  PYTHON

python 爬课表
摘要:import requests from bs4 import BeautifulSoup from fastapi import FastAPI from starlette.middleware.cors import CORSMiddleware app = FastAPI() origins 阅读全文

posted @ 2020-02-21 10:53 chenchang12 阅读(205) 评论(0) 推荐(0)

Python数据简单处理
摘要:##Python数据简单处理 import numpy as np ''' a=np.array([1,1,2,3,4]) c=np.arange(4) d=np.linspace(1,6,4); print(d) ''' import matplotlib.pyplot as plt x = np 阅读全文

posted @ 2019-03-23 19:58 chenchang12 阅读(282) 评论(0) 推荐(0)

Django跨域
摘要:1.pip install : django-cors-headers 2.settings:INSTALLED_APPS = [ ... 'corsheaders', ... ] MIDDLEWARE_CLASSES = ( ... 'corsheaders.middleware.CorsMidd 阅读全文

posted @ 2019-01-08 20:41 chenchang12 阅读(96) 评论(0) 推荐(0)

python os读取文件
摘要:<pre class="markdow-doc"> 阅读全文

posted @ 2018-12-25 18:45 chenchang12 阅读(1571) 评论(0) 推荐(0)