- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 ImportError: No module named 'encodings'
添加PYTHONHOME变量# 我的python.exe所在地E:\Anaconda3
2020-03-31 10:31:10
1536
1
原创 c/c++中修改const修饰的变量
const的几种常用形式1. const 修饰常量const 修饰常量,值无法修改const int a = 2;//和下面一种等价,int 和 const位置可以交换int const b = 2;2. 指向常量的指针const 修饰指针指向的常量,值无法修改 ,指针可以修改指向const int* d = new int(2);//和下面一种等价,const 和 int同样可以...
2019-11-15 11:14:42
1528
1
原创 几行代码拆分简单单词
#include <stdio.h>int main(int argc, char const *argv[]){ char word[128]; int m; while((m=fscanf(stdin,"%[a-zA-Z0-9']",word))!=EOF){ if(m==1){ puts(word); }else{ fgetc(stdin); }...
2019-10-08 11:07:58
300
原创 win10 PPPOE模块损坏,NetKepper无法登陆
win10 PPPOE模块损坏桌面新建一个文件1.txt,写入下面的内容Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog]"ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,0...
2019-09-06 08:49:41
5588
1
原创 c1xx : warning C4199: two-phase name lookup is not supported for C++/CLI, C++/CX, or OpenMP; use /Zc
c1xx : warning C4199: two-phase name lookup is not supported for C++/CLI, C++/CX, or OpenMP; use /Zc:twoPhase-解决步骤:项目->属性->C/C+±>语言->符合模式:否
2019-07-09 15:43:02
2220
原创 c++和python在windows下通过dll交互
python代码from ctypes import *dll_path = r'C:\Users\Administrator\Desktop\python和c++互调\c++程序\demo\x64\Release\demo.dll'lib = CDLL(dll_path)for i in range(1, 11): lib.gwx_add(c_double(i)) li...
2019-06-04 14:31:04
519
原创 NetKeeper720,能上QQ不能上网
(记一次NetKeeper网络问题)NetKeeper720错误,请打开设备管理器,卸载下面两个驱动,重启电脑然后就可以上NetKeeper了。又发现只能上qq不能上网页,先尝试用QQ电脑管家修复,修复没效果。于是:打开控制面板->选择网络和Internet->Internet选项->去掉所有单选框确定即可上网啦。...
2018-12-27 11:51:30
3945
4
原创 基础博弈算法之——极大极小以及AB剪枝
极大极小算法以及Alpha_beta剪枝# python3# author :李先生# time :2018.10.28# email :2452871021@qq.comclass TicTacToe(object): ''' 井字棋游戏: player:当前落子玩家,-1代表AI,1代表人类 board:棋盘 ''...
2018-10-28 20:03:08
5399
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人