自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 Python—打砖小游戏

打砖块简易的代码。import pygamefrom pygame.locals import *import sys,random,time,mathclass GameWinde(object): """创建游戏窗口类""" def __init__(self,*args,**kw): self.window_length = 600 self.window_wide = 500 # 绘制游戏窗口,设置窗口尺寸 s

2021-01-06 17:17:38 231 1

原创 注册

利用这个可以节省大量的时间,代码简洁。from faker import Fakerfake = Faker(locale='Zh_CN') # 伪造中文数据print(fake.ssn())class Person: def __init__(self,zhang_hao,sec_key): self.z_h = zhang_hao self.sk = sec_keyperson_list = []for i in range(0,1000):

2021-01-06 13:30:12 4684

原创 表白樱花树

import turtle as Timport randomimport time#画樱花的躯干(60,t)def Tree(branch,t): time.sleep(0.0005) if branch > 3: if 8 <= branch <= 12: if random.randint(0,2) == 0: #此处应该为逗号 t.color('snow') # 白 e

2021-01-06 13:26:09 515

原创 简易版的小黑屋

import randomimport timeEVENT = ["衣衫褴褛的人","沼泽","xxx"]#事件列表SOURE = ["木材","肉","布"]#资源列表SLILL = ["降龙十八掌","打狗棒法","九阴白骨爪","九阴真经","如来神掌"]#技能列表def lnit():#初始人物 person = {"HP":100,"Hungry":100,"IQ":100, "skill":"", "木材":1,"fire":

2021-01-06 13:20:40 114

原创 字典攻击—Python

在这里我分享我们课堂上学到的一个实验《字典攻击》如代码中有什么提升的地方请各位大佬指点import itertools # 迭代器import datetimeimport hashlibimport timedef generatelibary(library, length=8): libararys = itertools.product(library,repeat=length) dic = open("paswordlirbarys.txt","w",encoding

2021-01-06 13:15:30 390 2

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除