摘要:
一、python导出所有已安装的模块 1、首先安装freeze模块 pip install freeze -i https://mirrors.aliyun.com/pypi/simple/ 安装成功 2、导出到桌面requirements.txt 文件 pip freeze> C:\Users\z 阅读全文
摘要:
import reimport urllib.request, urllib.errorimport xlwtimport sqlite3from bs4 import BeautifulSoup# 指定url内容baseurl = "https://movie.douban.com/top250? 阅读全文
摘要:
import reimport urllib.request, urllib.errorimport xlwtfrom bs4 import BeautifulSoupbaseurl = "https://movie.douban.com/top250?start="# 创建电影链接正则表达式对象, 阅读全文
摘要:
import sqlite3# 打开或创建sqlite数据库conn = sqlite3.connect("test.db")print("opened database successfully")c = conn.cursor()# 创建表sql = ''' create table compa 阅读全文
摘要:
阅读全文