月度归档: 2019年4月

174 篇文章

thumbnail
Java 登陆API开发
Github https://github.com/EchoGroot/fourth_spring_simfyspider.git 知识 REST,即Representational State Transfer,表述行状态转移 Restful架构就是符合Rest原则的软件架构 简单来说,通过网络,将其中的资源(文本、图片、歌曲、服务)的状态改变 …
thumbnail
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 : 对象关系映…
thumbnail
员工薪资管理系统
Github https://github.com/EchoGroot/EIMS.git 背景资料: 某单位现有1000名员工,其中有管理人员、财务人员、技术人员和销售人员。该单位下设4个科室,即经理室、财务科、技术科和销售科。工资由基本工资、福利补贴和奖励工资构成,失业保险和住房公积金在工资中扣除。每个员工的基本资料有姓名、性别、年龄、单位和职业…
thumbnail
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,he…
Python 练习册,每天一个小程序,第 0003 题
要求 将 0001 题生成的 200 个激活码(或者优惠券)保存到 Redis 非关系型数据库中。 代码 import random import string import redis re=redis.Redis() print(re.get('mytest')) def getKeys(): list=[] str=string.ascii_…
Python 练习册,每天一个小程序,第 0002 题
要求 将 0001 题生成的 200 个激活码(或者优惠券)保存到 MySQL 关系型数据库中。 代码 import string import random import pymysql db=pymysql.connect(host="localhost", user="root", password="Yuyy0800", db="big_d…
Python 练习册,每天一个小程序,第 0001 题
要求 做为 Apple Store App 独立开发者,你要搞限时促销,为你的应用生成激活码(或者优惠券),使用 Python 如何生成 200 个激活码(或者优惠券)? 代码 import random import string str=string.ascii_uppercase+string.digits def getKey(length…
thumbnail
Python 练习册,每天一个小程序,第 0000 题
要求  将你的 QQ 头像(或者微博头像)右上角加上红色的数字,类似于微信未读信息数量那种提示效果。 类似于图中效果 代码 from PIL import Image, ImageDraw, ImageFont iconPath=r"F:\学习\移动互联APP\APP图标\bf181022.png" icon=Image.open(iconPath…
thumbnail
Python爬取重庆交通大学官网
爬取重庆交通大学官网首页的时政要闻,并提取信息,将时政要闻的时间、标题全部导出显示 代码 import requests from urllib import request from bs4 import BeautifulSoup def main(): url = "http://news.cqjtu.edu.cn/rss.htm" head…