将一个签名网站http://www.uustv.com/的内容爬下来显示出来 代码:sign.py from tkinter import * from tkinter import messagebox import requests import re from PIL import Image,ImageTk #模拟浏览器发送请求 def download(): startUrl = 'http://www.uustv.com/' name = enter.get() #name = na
效果如下: from tkinter import * from tkinter import messagebox import requests import re from PIL import Image,ImageTk def show(root,enter): start_url = 'http://www.uustv.com/' name = enter.get() if not name: messagebox.showinfo('警告:','请输入用户名') else: dat
环境搭建: pip install itchat numpy wordcloud matplotlib jieba 先把上面的几个包安装完成,直接上代码 import itchat from itchat.content import TEXT import re import os import numpy as np from PIL import Image from wordcloud.wordcloud import WordCloud if itchat.load_login_sta
The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special