自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 资源 (4)
  • 问答 (8)
  • 收藏
  • 关注

原创 根据Ip地址设置禁止访问网站

有些网站为了防止一些电脑访问网站,就会设置一种禁止访问网站。如:https//:scratch.mit.edu那这是怎么实现的呢?我们要获取到当前的城市,是否是我们要防止的城市。<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> <script type="text/javascript"> if (returnCitySN["cname"] == "湖南省") {

2022-02-26 19:22:39 558 1

原创 俄罗斯方块制作(未完成)

using System.Collections;using System.Collections.Generic;using UnityEngine;/* title:俄罗斯方块代码 1、随机的显示方块 2、显示的方块运行脚本 3、碰到标签为a的,就随机克隆方块 4、这里最多能横排可以放下11个方块 5、先把所有方块的y坐标放到列表里 6、如果列表里某个坐标的值一样的有11个说明要消除这一行 */public class Move : MonoBehaviour{ v

2022-01-12 13:04:48 121

原创 tkinter 多按钮触发不同函数

#多个按钮,第一个按钮按下输出1,第二个按钮按下输出2....from tkinter import *root = Tk()def f1(): print("1")def f2(): print("2")function = []function.append(f1)function.append(f2)for a in range(2): button = Button(root,text="试一试点一下我",command = function[a]) butto

2021-11-15 20:23:45 1030

原创 高精度减法

#include<iostream>#include<cstring>#include<cstdio>#include<math.h>using namespace std;int main() { string a[2000], b[2000],c[2000],d[2000],e[2000],f[2000]; scanf("%s %s",a,b); int la, lb = a->length(); b->length();

2021-10-31 13:46:08 129

原创 滑动拆图开发教程

首先手动设置每次滚轮滚43行接着运行以下代码:import timeimport win32gui, win32ui, win32con, win32apidef window_capture(filename): hwnd = 0 # 窗口的编号,0号表示当前活跃窗口 # 根据窗口句柄获取窗口的设备上下文DC(Divice Context) hwndDC = win32gui.GetWindowDC(hwnd) # 根据窗口的DC获取mfcDC mfcDC = win32ui.

2021-08-08 16:21:01 102

原创 红灯检测动画

from pygame import *from sys import *init()font.init()screen = display.set_mode((680,742))display.set_caption("红灯检测")x=0y=642is_green = Truen = 300print(60*60*365*100)while True: for a in event.get(): if a.type == QUIT:

2021-07-30 09:46:59 101

原创 制作飞机大战

from pygame import *from sys import *from random import *init()screen = display.set_mode((480,700))display.set_caption("飞机大战")bullet = []bullet_x = []bullet_y = []y = 700-126x = 240aircraft_modeling=0alien_x = []alien_y = []alien = []ali

2021-07-28 12:46:29 77

原创 外星人入侵游戏开发

from pygame import *from sys import *init()font.init()screen=display.set_mode((0,0),FULLSCREEN)ship_x,ship_y=900,1000bullet=[]bullet_x=[]bullet_y=[]alien_x=[]alien_y=[]alien_delete=[]get_alien_x=0get_alien_y=0alien_left=Falsealien_right=

2021-07-23 10:21:20 138 2

原创 爬取语言助手

from requests import *from pygame import *init()mixer.init()response1=get("https://fanyi.baidu.com/gettts?lan=zh&text=你好我是小思语言助手,很高兴见到你&spd=5&source=web")print("你好我是小思语言助手,很高兴见到你")with open("你好我是小思语言助手,很高兴见到你.mp3","wb") as f: f.writ.

2021-07-17 18:33:03 192 1

原创 爬取中国所有成语

直接上代码from requests import *from lxml import etreedef main(): text=[] for a in range(0x4e00,0x9fa6): text.append(chr(a)) try: for a in text: response=get("https://www.chengyucidian.net/search/?type=1&keyword=%s

2021-07-16 21:39:40 128

原创 AI贪吃蛇(c++)

#include<SFML/Graphics.hpp>#include<cstdlib>#include<string>#include<iostream>using namespace sf;using namespace std;int main(){ RenderWindow window(VideoMode(400, 400), L"贪吃蛇"); int x = 120; int y = 120; bool right =.

2021-07-08 19:17:26 280

原创 贪吃蛇(c++)

#include<SFML/Graphics.hpp>#include<cstdlib>#include<string>using namespace sf;int main(){ RenderWindow window(VideoMode(400, 400), L"贪吃蛇"); int x = 120; int y = 120; bool right = true; bool left = false; bool up = false; .

2021-07-08 17:31:14 132

原创 AI贪吃蛇制作

from pygame import *from sys import *from random import *init()font.init()screen=display.set_mode((600,400))screen.fill((20,139,69))display.set_caption("贪吃蛇")c = []right=Trueleft=Falseup=Falsedown=Falsen=-3l=Trues=0width=30height=30x.

2021-07-07 09:40:46 2156

原创 贪吃蛇制作

导入模块from pygame import *from sys import *from random import *设置窗口init()screen=display.set_mode((400,400))screen.fill((20,139,69))display.set_caption("贪吃蛇")while True: for a in event.get(): if a.type==QUIT: quit()

2021-06-25 17:27:56 61

原创 歌谱下载器

"""网址:http://www.yidianqiuxun.com/?s=要搜索的东西第一个歌谱的位置://*[@id="main"]/ul/li[2]/a图片位置:/html/body/div[1]/div[2]/div[1]/main/article/div/div[2]/p/img"""from requests import *from lxml import etreeresponse=get("http://www.yidianqiuxun.com/?s=%s"%input("请.

2021-06-18 21:56:01 92

原创 制作五子棋

import pygame,sys#导入模块pygame.init()#游戏初始化pygame.mixer.init()pygame.font.init()#汉字初始化screen = pygame.display.set_mode((650,450))#创建游戏窗口pygame.display.set_caption("五子棋")#设置游戏窗口的标题pos=[]#记录棋盘上每一个点的坐标x=10#记录点的x坐标y=10#记录点的y坐标p=[]#记录点的地图位置n=0#判断棋子的颜色.

2021-06-13 14:45:56 257 2

自动刷视频开发教程讲解

自动刷视频开发教程讲解

2021-08-10

原创签名软件爬虫开发教程

原创签名软件爬虫开发教程

2021-08-07

python环境配置.mp4

python环境配置.mp4

2021-08-02

原创外星人入侵开发小游戏

这是《入门到实践》这本书上的小游戏 我没有根据书上的来,原创的

2021-07-28

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

TA关注的人

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