摘要: import reimport urllib.request, urllib.errorimport xlwtfrom bs4 import BeautifulSoupbaseurl = "https://movie.douban.com/top250?start="# 创建电影链接正则表达式对象, 阅读全文
posted @ 2021-01-20 23:20 干it的小张 阅读(95) 评论(0) 推荐(0) 编辑
摘要: import sqlite3# 打开或创建sqlite数据库conn = sqlite3.connect("test.db")print("opened database successfully")c = conn.cursor()# 创建表sql = ''' create table compa 阅读全文
posted @ 2021-01-20 23:17 干it的小张 阅读(419) 评论(0) 推荐(0) 编辑