会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
神迹丶
学而时习之,不亦说乎?
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
···
9
下一页
2021年6月1日
Python3.9中弹窗提示代码实现,使用tkinter中的messagebox实现
摘要: from tkinter import messagebox messagebox.showinfo("提示", "我是一个提示框")
阅读全文
posted @ 2021-06-01 11:25 神迹丶
阅读(926)
评论(0)
推荐(0)
2021年5月31日
Python 使用Tkinter Text控件常用函数语法
摘要: import tkinter # place()和pack()的区别 # place可以自定义设置控件显示坐标 # pack自动设置控件的位置在画板中间,并按照pack顺序进行显示布局 # insert函数,根据Text中指定位置设置值,例如Text.insert('0.0', # tk窗口布局 #
阅读全文
posted @ 2021-05-31 22:37 神迹丶
阅读(1918)
评论(0)
推荐(0)
2021年5月30日
Python 隐藏控制台窗口
摘要: import ctypes whnd = ctypes.windll.kernel32.GetConsoleWindow() if whnd != 0: ctypes.windll.user32.ShowWindow(whnd, 0) ctypes.windll.kernel32.CloseHand
阅读全文
posted @ 2021-05-30 18:31 神迹丶
阅读(1060)
评论(0)
推荐(0)
2021年2月1日
批处理屏蔽高危端口或者指定端口
摘要: @echo off title 创建IP安全策略,屏蔽135、139 . . . 等端口 (win7) netsh ipsec static add policy name=qianye netsh ipsec static add filterlist name=Filter1 netsh ips
阅读全文
posted @ 2021-02-01 11:48 神迹丶
阅读(919)
评论(0)
推荐(0)
2020年11月20日
C++ 获取计算机名称,获取计算机ip
摘要: #include <iostream> #include <string> #include <vector> #include <atlstr.h> #include <winsock2.h> #pragma comment(lib,"ws2_32.lib") using namespace st
阅读全文
posted @ 2020-11-20 15:22 神迹丶
阅读(2028)
评论(0)
推荐(0)
2020年8月22日
SQL 数据库的基本操作
摘要: ##DDL和DML DDL定义语言 -- -- 1.创建数据库 -- 查看数据库 show databases # 创建数据库 sql语言不区分大小写,除非是在字符串中区分 create database Helloworld; # 如果数据库不存在就创建 create database if no
阅读全文
posted @ 2020-08-22 15:27 神迹丶
阅读(255)
评论(0)
推荐(0)
2020年5月22日
C++ 判断当前网络是否正常,
摘要: #include<iostream> #include <Netlistmgr.h> static bool checkIsNetwork() { Sleep(1000); CoInitialize(NULL); // 通过NLA接口获取网络状态 IUnknown *pUnknown = NULL;
阅读全文
posted @ 2020-05-22 06:53 神迹丶
阅读(2231)
评论(0)
推荐(0)
2020年5月6日
C++ 模仿vector的一些功能实现
摘要: #ifndef _M_VECTOR_H #define _M_VECTOR_H #define DELETEOBJ(p){if(p!=NULL) delete p;p=NULL; }//释放对象 #define DATASIZE 4 //初始缓冲区大小 template<typename T> cl
阅读全文
posted @ 2020-05-06 21:57 神迹丶
阅读(318)
评论(0)
推荐(0)
2020年5月3日
C++ 多态练习,实现一个回合制小游戏
摘要: //头文件#ifndef WUQI_H #define WUQI_H #include <iostream> #include <string> using namespace std; class wuqi { public: virtual int Get_wuqi_gongji() = 0;/
阅读全文
posted @ 2020-05-03 12:40 神迹丶
阅读(1909)
评论(0)
推荐(0)
2020年4月22日
C++ 抛出异常
摘要: #include <iostream> using namespace std; int division(int a, int b) //传入2个int型变量若被除数或者除数为0 则抛出异常否则返回结果 { if (a == 0) { cout << "抛出异常" << endl; throw 1
阅读全文
posted @ 2020-04-22 22:21 神迹丶
阅读(2866)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
9
下一页
公告
网站已运行: