摘要: import sqlite3 def CreateDataBase(): try: db =sqlite3.connect("taobao.db") except: print("创建数据库失败") try: db.execute('create table GoodMsg(id varchar(1 阅读全文
posted @ 2020-05-18 16:16 王者2 阅读(170) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8 print("你好,我是测试文件") def Texts(): return [6, 2, 3, 1, 5, 4] using IronPython.Hosting; namespace LanguageCall { class Program { static void 阅读全文
posted @ 2020-05-18 16:07 王者2 阅读(290) 评论(0) 推荐(0) 编辑
摘要: import requests import bs4 from bs4 import BeautifulSoup def getHTMLText(url): try: r=requests.get(url ) r.raise_for_status() r.encoding=r.apparent_en 阅读全文
posted @ 2020-05-18 16:06 王者2 阅读(137) 评论(0) 推荐(0) 编辑
摘要: from selenium import webdriver import time driver=webdriver.Chrome() driver.get('https://www.icourse163.org') button1=driver.find_element_by_xpath('/h 阅读全文
posted @ 2020-05-18 16:05 王者2 阅读(211) 评论(0) 推荐(0) 编辑
摘要: import os import xlrd import pandas as pd import tkinter as tk from tkinter import filedialog root = tk.Tk() root.title("Excel处理") root.geometry('700x 阅读全文
posted @ 2020-05-18 16:02 王者2 阅读(125) 评论(0) 推荐(0) 编辑
摘要: import requests import json page=1 while True: url='http://www.kfc.com.cn/kfccda/ashx/GetStoreList.ashx?op=cname' data={ 'cname':'广州', 'pageIndex': pa 阅读全文
posted @ 2020-05-18 15:42 王者2 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 为了将python打包成exe程序,拖了三天才搞定。中间报错了几次,下面我就分享一下报错与解决办法 1. 打包的时候一定要使用管理员命令运行 2. 找不到模块 按网上的说法试了一下,一个都没有成功。因为我用的Anaconda环境,最后我把Anaconda环境卸载了,重新使用pip安装需要的包,就没有 阅读全文
posted @ 2020-04-26 14:20 王者2 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 1 import itchat 2 import pandas as pd 3 4 inchat.auto_login(hotReload=True) 5 friends=itchat.get_friends(update=True)[0:] 6 7 list=[] 8 for x in frien 阅读全文
posted @ 2020-04-23 22:43 王者2 阅读(344) 评论(0) 推荐(0) 编辑
摘要: c#提供了一个部分类,它只显示类的一部分,用关键字partical修饰 using System; public partial class Course { public int Id { get; set; } public string Name { get; set; } public do 阅读全文
posted @ 2019-12-11 20:07 王者2 阅读(965) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Text; namespace 面向对象 { class Person { //属性不可更改 public string FirstName { get; } public st 阅读全文
posted @ 2019-12-11 20:01 王者2 阅读(2630) 评论(0) 推荐(0) 编辑