Java 登陆API开发
Github https://github.com/EchoGroot/fourth_spring_simfyspider.git 知识 REST,即Representational State Transfer,表述行状态转移 Restful架构就是符合Rest原则的软件架构 简单来说,通过网络,将其中的资源(文本、图片、歌曲、服务)的状态改变 具体来…
129 2019-04-30 去看看
Java爬虫 web版
Github https://github.com/EchoGroot/fourth_spring_simfyspider.git 目的 运用 spring mvc :WebMVC框架 完成从请求到java 1.Controller 2.Model 3.View hibernate-jpa / spring-data-jpa:ORM : 对象关系映射 spring :无侵入、轻量级、无缝集成其他框架…
97 2019-04-30 去看看
Python 实现可视化抽奖
代码 from tkinter import * import threading import time root = Tk() root.title('大转盘') root.minsize(300,300) btn1=Button(root,text='樱桃',bg='red') btn1.place(x=20,y=20,width=50,height=50) btn2 = Button(root, text='香蕉', bg='white') btn2.pla…
256 2019-04-22 去看看
Python 练习册,每天一个小程序,第 0003 题
要求 将 0001 题生成的 200 个激活码(或者优惠券)保存到 Redis 非关系型数据库中。 代码 import random import string import redis re=redis.Redis() print(re.get('mytest')) def getKeys(): list=[] str=string.ascii_uppercase for i in r…
98 2019-04-22 去看看
Python 练习册,每天一个小程序,第 0002 题
要求 将 0001 题生成的 200 个激活码(或者优惠券)保存到 MySQL 关系型数据库中。 代码 import string import random import pymysql db=pymysql.connect(host="localhost", user="root", password="Yuyy0800", …
84 2019-04-22 去看看
Python 练习册,每天一个小程序,第 0001 题
要求 做为 Apple Store App 独立开发者,你要搞限时促销,为你的应用生成激活码(或者优惠券),使用 Python 如何生成 200 个激活码(或者优惠券)? 代码 import random import string str=string.ascii_uppercase+string.digits def getKey(length): …
102 2019-04-22 去看看
Python 练习册,每天一个小程序,第 0000 题
要求 将你的 QQ 头像(或者微博头像)右上角加上红色的数字,类似于微信未读信息数量那种提示效果。 类似于图中效果 代码 from PIL import Image, ImageDraw, ImageFont iconPath=r"F:\学习\移动互联APP\APP图标\bf181022.png" icon=Image.open(iconPat…
162 2019-04-22 去看看
Python利用Kmeans算法实现聚类分析
http://yuyy.info/big_data/class_5_Kmeans算法实现聚类分析/9kmeans.html
176 2019-04-22 去看看
Python爬取重庆交通大学官网
爬取重庆交通大学官网首页的时政要闻,并提取信息,将时政要闻的时间、标题全部导出显示 代码 import requests from urllib import request from bs4 import BeautifulSoup def main(): url = "http://news.cqjtu.edu.cn/rss.htm" headers = { '…
168 2019-04-22 去看看