自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 奥特曼打小怪兽

from random import randint # 导入randint函数class Monster(object): def __init__(self, name, energy): self.name = name self.energy = energy if self.energy >= 100: print(self.name + "满血战斗") else:

2021-01-08 09:57:42 348

原创 雪花

import turtleimport timefrom turtle import *# coding=utf-8def snowflake(l, d): screen = turtle.Screen() # screen.bgpic("my_q.jpg") screen.bgcolor("#208000")# 背景颜色可调 turtle.tracer(0, 0) if d > 0: for i in range(6):

2021-01-08 08:32:48 132

原创 写了个99乘法表

34567for i in range(9): # 从0循环到8 i += 1 # 等价于 i = i+1 for j in range(i): # 从0循环到i j += 1 print(j, '*', i, '=', i * j, end=' ', sep='') # end默认在结尾输出换行,将它改成空格 sep 默认 j,'*',i,'=',i*j 各元素输出中间会有空格 print() # 这里作用是输出换

2021-01-07 22:35:53 381

原创 购物车程序

shop_car = [] # 用来存放购买的商品goods = { 1: ['手机', 2000], 2: ['电脑', 5500], 3: ['自行车', 1500], 4: ['宝马', 200000]} # 商品列表while True: salary = input("你有多少钱:") # 输入有多少钱 if salary.isdigit(): # 判断是否为整数 salary = int(salary) # 将字符串

2021-01-07 22:17:13 110

原创 表白小技巧

# Project Leader:刘# Project:表白源码import turtleimport randomdef love(x,y):#在(x,y)处画爱心lalala lv=turtle.Turtle() lv.hideturtle() lv.up() lv.goto(x,y)#定位到(x,y) def curvemove():#画圆弧 for i in range(20): lv.right(10

2021-01-07 20:52:42 180

原创 表白必备小干货

import timewords = input('Please input the words you want to say!:')#例子:words = "Dear lili, Happy Valentine's Day! Lyon Will Always Love You Till The End! ♥ Forever! ♥"for item in words.split(): #要想实现打印出字符间的空格效果,此处添加:item = item+' ' letterlist

2021-01-07 20:40:30 111

原创 非诚勿扰

#1.sex(性别) 2.city(工作地区) 3.age(年龄)(20--58) 4.high(身高)(165--180) 5.education background(学历)(本科--硕士) 6.single(单身状况)# 7.salary(收入)(2000——100000) 8.name(姓名)import randomnametext = "吕布,刘备,貂蝉,赵云,张飞,曹操,小乔,大乔,孙策,孙权,诸葛帅"name = nametext.split(",")Choicename = n

2021-01-07 20:28:17 101

原创 清洗豆瓣数据

text1 = '''<ol class="grid_view"> <li> <div class="item"> <div class="pic"> <em class="">1</em> <a href="https://movie.douban.com/subject/129

2021-01-07 20:15:19 525

原创 小黑屋

import randomimport timeEVENT = ["衣衫褴褛的人","沼泽","xxx"]#事件SOURCE = ["木材","肉","布"]#资源SKILL = ["乾坤大挪移","一阳指","葵花宝典","龟派气功"]#技能def Init():#初始人物 person = {"HP":100,"Hungry":100,"IQ":100,"木材":1,"fire":0,"skill":""}#初始状态 time.sleep(2)#停止运行2秒 pri

2021-01-07 20:08:56 188

原创 佛曰

str1= "abcdefghi,.;:jklmnop!qrstuvwxyz12 346578ABCDEFGHIJKLMNOPQRSTUVWXYZ"str2 = "klmnopqr12s3t,A:S;B.X6DE8!FGH 7IJKL4MNOPQRSTUVWXYZuvwxyzabcdefghij"str3 = "tuvwxy1za2AB3XD7EFGB'.;:HI5JK6!LMNO4PQRS TUVWXYZbcdefghijklmnopqrs"str4 = "klmn1op3qr4ab5AB7XD,.

2021-01-07 20:05:09 280

原创 登录注册程序实验

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): zhanghao =

2021-01-07 19:51:47 116

原创 字典攻击

import itertools # 迭代器import datetimeimport hashlibimport timedef generatelibary(library, length=8): libararys = itertools.product(library,repeat=length) dic = open("paswordlirbarys.txt","w",encoding='utf-8')#写模式打开文件 for i in libararys:

2021-01-07 19:48:09 517

空空如也

空空如也

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

TA关注的人

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