自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 问答 (1)
  • 收藏
  • 关注

原创 完整建站教程!(Filezilla + FTP服务器网站)

使用Filezilla + InfinityFree建站

2024-02-03 20:01:58 383 1

原创 Python项目之ASCII艺术——图片字符输出

输入图片,以字符阵列输出

2024-01-10 21:40:20 413 1

原创 PyQt5天气预报程序

PyQt5天气预报程序

2022-08-11 11:20:38 315 2

原创 pyautogui连点器

Too easy, right?import pyautogui as guifrom time import sleepsleep(5)while 1: gui.click() # pyautogui failsafe auto stops program

2022-05-22 15:37:08 292

原创 Python变量初始化方法

很多C++程序都有以下语句:int n;或char ch;但Python如何实现?我们只会这样:n = 123或ch = 'a'Python提供了这样一种办法,即把:n = 123变成n: int但是这样必须马上给它赋一个初值(它本身没有初值),例如运行下面的代码:n: intprint(n)结果:Traceback (most recent call last): File "c:/Users/eh/test_first_.

2021-11-24 21:20:30 5567

原创 Python Tkinter 实现右键菜单

可以方便写个函数:def showPopoutMenu(w, menu): def popout(event): menu.post(event.x + w.winfo_rootx(), event.y + w.winfo_rooty()) w.update() w.bind('<Button-3>', popout)应用:1、用于整个窗口:from tkinter import *# Python 2.X 可以用from T

2021-10-05 17:19:28 3485 1

原创 Python Excel批处理

保存下面的代码为excelbatch.py:from sys import argvfrom openpyxl import load_workbookfrom openpyxl.utils import column_index_from_string as str_to_intfrom math import *NO_ENOUGH_ARGS_ERROR = 1MODE_ERROR = 2NO_SUCH_FILE_ERROR = 3NO_SUCH_SHEET_ERROR = 4BA

2021-09-25 20:31:05 90

原创 太棒了,我用Python做了一个简单的OI测评器(不需要任何第三方模块)!ㄟ(≧◇≦)ㄏ

import subprocess, timecode = '''a, b = input().split()print(int(a) + int(b))''' # Place the test code herefile = open('code.py', 'w')file.write(code)file.close()testdata = {'12 34': ('46', 1), '134 55': ('189', 1), '-134 -89': ('-223', 1)} # Plac.

2021-09-03 18:10:14 315

原创 C语言实现string结构体

string.h#ifndef STRING_H#define STRING_H#include <malloc.h>#include <stdio.h>#include <string.h>typedef struct{ char * s; int len;} string;string string_construct(const char * str){ string s; s.len = strlen(str); s.s =

2021-08-31 18:21:47 772

原创 C++ <windows.h> Beep方法讲解

C++的windows.h里有一个Beep方法,这个方法调用系统蜂鸣器,发出特定频率的声音。参数如下:windows.h Beep方法 参数名 类型 是否必须 说明 dwFreq DWORD 是 发出声音的频率 dwDuration DWORD 是 发出声音的长度(毫秒) 先给大家放出音调对应频率的#define语句~#define C0 16.35#define CSHARP0 17.32#define D0 18.35

2021-08-29 10:57:57 1903 5

原创 C++单行注释变成多行注释——超简单

在C++里,我们一般都用//创建单行注释,用/**/创建多行注释,但是你知道吗,用//也可以创建多行注释哦!只要在每行末尾添加一个\就能实现!​​// Multiple line comment \in c++ \even more \but stop when no back-slash​这个效果在CSDN里不好,在自己电脑上试试吧!...

2021-08-29 10:21:29 1313

原创 C++快乐贪吃蛇代码

大家可以改进哦/* Name: Retro Snake Copyright: (c) 2021 Eric Huang. All rights reserved. Author: Eric Huang Date: 2021/08/05 Description: A C++ Retro Snake Game.*/#include<bits/stdc++.h>#include"mycolor.h"#include<conio.h>#include<wind

2021-08-17 11:30:14 128

原创 Python黑白转换程序

现在,为了一些事情,电脑上总是要有一些图片,但是手动操作是否有点枯燥呢?Python的Pillow模块可以帮你完成它!安装模块:打开一个命令行窗口,pip install pillow如果指出pip不存在,可以运行以下命令:python -m pip install pillow要检查模块是否安装成功,就打开一个python shell(终端),运行以下代码:>>> from PIL import Image如果出现了提示符>>&gt.

2021-08-10 21:23:16 531

空空如也

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

TA关注的人

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