- 博客(42)
- 收藏
- 关注
原创 VScode配置python和mysql
首先,用户可能已经创建了一个虚拟环境在D:\rubbersupplychain\venv,而之前的建议中提到了创建虚拟环境,但用户现在特别指出这个路径,说明他们可能已经手动创建了或者通过其他方式设置了环境。此外,用户之前的环境中有PHPStudy和MySQL,可能需要检查Python连接MySQL的配置是否正确,特别是如果用户已经有现成的数据库设置。还要考虑用户的环境,用户使用的是PHPStudy安装的MySQL,可能服务名称不同,需要指导用户如何在PHPStudy中启动MySQL服务。
2025-02-24 00:36:34
792
原创 pycharm 常用设置
右上角 file-setting-“keymap”,右侧搜索框输入“increase”,搜索出来之后双击,选择“Add Mouse Shortcut”然后在操作框按住“Ctrl”并将鼠标滚轮上滑,完成设置,一直点击OK关闭界面即可。缩小操作只需要将上述步骤搜索的“increase”换成“decrease”即可。设置操作时按住“Ctrl”并向下滑动滚轮即可。分别在setting-的editor-font和color scheme-console font。
2023-01-01 21:14:58
2383
1
原创 aliyun centos7.5,安装mysql5.6数据库,navicat 连接数据库
1.删除mariadb和mysqlmariadb是mysql的一个分支,但要安装mysql需要删除它执行rpm -qa|grep mariadb,查看mariadb情况,有就删除 rpm -e -nodeps mariadb....名字查看是否已经有mysqlrpm -qa |grep mysql 有就删除--------------------2、安装的版本:mysql-community-common-5.6.51-2.el7.x86_64见以下链接:https://w.
2021-07-25 22:04:19
455
原创 java for和while输出乘法口诀
public class forloop { public static void main( String []args){ System.out.println("输出乘法口诀表:"+"\n");//思路一 int a=1;int b=1; while(a<10){ while(b<a+1){ System.out.print(a+"*"+b+"="+b*a+"\t");...
2021-07-21 23:02:03
524
原创 python KeyError:
Traceback (most recent call last): File "F:/eclipse-workspace2/spiderForDrafts/spider_for_tcpj_18227637522forcommerdraft.py", line 248, in <module> main() File "F:/eclipse-workspace2/spi...
2021-07-10 13:41:55
492
原创 Requirement already satisfied 解决方法
python -m pip install --upgrade pip 出现 :Requirement already satisfied 解决方法加上路径即可python -m pip install --target=D:/tongbupan/spider_for_jobinfo/venv/Lib/site-packages --upgrade pip
2021-02-21 23:10:53
3878
2
原创 Eclipse配置C/C++开发环境
Eclipse配置C/C++开发环境一、步骤 下载安装MinGW、Eclipse;环境变量设置;1、下载安装MinGW(1)mingw下载地址:https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mi...
2020-10-02 19:49:47
555
原创 环境导出、项目环境requirements、跟新包、安装包,查看某个包是否安装
1、出现警告C:\Users\admin>pip freeze > requirements.txtWARNING: Could not generate requirement for distribution -ywin32 227 (f:\programdata\anaconda3\lib\site-packages): Parse error at "'-ywin32='": Expected W:(abcd...)删除F:\programdata\anaconda...
2020-08-18 23:45:33
1052
原创 python notepad++如何修改当前目录为工作目录
python notepad++如何修改当前目录为工作目录在Notepad++上Plugins->Plugins Manager里面安装NppExec plugin,然后勾选NppExec --> Follow $(CURRENT_DIRECTORY)
2020-08-17 23:40:11
280
原创 提取bilibili网页视频目录,网页提取标签、属性,list到写入文本
1、网页提起标签、及属性写入list # -*- coding:utf-8 -*-import requestsfrom bs4 import BeautifulSouphtml_doc3="""<ul class="list-box"><li class="watched on"><a href="/video/BV1gp4y1q71w?p=1" class="" title="1.01 引言"><i class="van-icon-videode
2020-08-17 23:05:47
1392
原创 win10商店无法打开,错误0x80131500、0x80072EFD
设置→应用→找到microsoft store →高级→重置此应用夏夜孤荷:win+r 输入 inetcpl.cpl 点开高级往下拉,勾上"使用TLS 1.2"选项,或者点还原高级设置。
2020-03-22 20:41:07
802
原创 mongo 连不上重启不了,exception: connect failed 问题排除
C:\Users\admin>mongoMongoDB shell version v4.0.3connecting to: mongodb://127.0.0.1:270172020-03-18T12:10:32.023+0800 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connectio...
2020-03-18 13:26:54
1627
原创 google浏览器chrome关闭和开启网页的自动翻译
1、右上角设置--高级---语言---询问是否翻译非你所选的语言没,如图示2、下次要翻译 --鼠标右键----
2020-02-28 15:01:51
568
原创 python爬虫出现 json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
1、运行python爬虫出现如下图所示bug2、解决办法:跟更新下最新的网站请求头request headers,和检查下请求链接是否还是一样,requests url 应该是就没登陆 要跟新cookies登陆成功! 200basicinfo请求失败!Traceback (most recent call last): File "F:\eclipse-worksp...
2020-02-23 13:39:34
6822
原创 python webcrawlering
webcrawler'envirement setting and soft installing1、the installing of the requests libpip3 install requestspip3 install seleniumpip3 install multidictpip3 install aiohttppip3 install cchard...
2019-10-07 20:50:01
170
原创 python_show waring handle
from selenium import webdriverfrom selenium.webdriver.chrome.options import Optionschrome_options = Options()chrome_options.add_argument('--headless')chrome_options.add_argument('--disable-gpu')...
2019-10-05 19:25:12
242
原创 pip uprading for python anconda
I tried several update operations and finally succeeded.With the following command, the network speed is busy, you have to wait for a long time.easy_install --upgrade pipMicrosoft Windows [Version...
2019-10-04 22:46:04
621
原创 win 2003 asp\.net\php环境搭建
安装Windows 2003.R2版本,下载好CD1,CD2,安装CD1,CD2解压后安装,再安装IIS,如遇见要插入cd下载win2003iis6i386,复制目录到cd路径安装
2018-10-31 09:38:29
295
原创 关于如何对递归函数的理解
1、理解递归函数的前置知识本人初次接触程序关于如何理解和运用递归函数也卡了好长一段时间,关于理解他首先要理解几个要点: 一、函数调用的原理要懂得 二、程序的执行顺序执行流程要清楚,然后一步步结合程序调用函数的原理分析其中的递推和回归过程 2 、关于递归函数调用占用资源大的问题的原理解释 记住函数调用传递的是值传递,调用了一个函数,把一个...
2018-10-30 13:49:31
5286
原创 nmap 命令
Nmap 7.70 ( https://nmap.org )Usage: nmap [Scan Type(s)] [Options] {target specification}TARGET SPECIFICATION: Can pass hostnames, IP addresses, networks, etc. Ex: scanme.nmap.org, microsoft.com...
2018-10-27 22:26:53
296
原创 eclipse c++多个编译环境选择配置配置、运行时提示Program file does not exist
文件工程预览里project exploer--chouse the file you confuige -->right click-->C/C++ Build-->environment--->second item-->edit把要添加的环境目录添加到后面或者修改原来的目录I'm having the Program "make" not found...
2018-10-26 14:12:05
3767
原创 明明已经声明了 怎么回事??was not declared in this scope、Symbol ‘XXX‘ could not be resolved;无声明,符号无法解析
Graduate *pt2=&grad1; pt2->display(); pt2=&stud1; //后面为什么不能接着再 这样定义了?????#include <iostream>#include<string>using namespace std;//申明基类class Student{ public: S...
2018-09-03 21:56:33
3906
原创 输入日期 算是一年的第几天
//============================================================================#include <iostream>using namespace std;struct yymmdd{ int year; int month; int day; };void input1(yy...
2018-08-28 18:27:06
1216
原创 明明没有错 怎么会说未定义,python
def OpenPrice(priceSequence): Open=priceSequence[0] return (Open)def ClosePrice(pricesequence): #Close=priceSequence[-1] Close=priceSequence[-1] return(Close)def HighPrice(price...
2018-08-24 23:20:40
7016
原创 C++基础 这个地址进制是多少多少进制的??
#include <iostream>using namespace std;void swap(int x,int y);int main() { int a=11,b=22; //int *m, *n; swap(a,b); cout <<&a<<','<<&b<<'\n'...
2018-08-20 12:18:51
981
原创 python 出现 type object 'xxxxx' has no attribute 'xxxx',什么原因
from datetime import datetimeclass Asset(object): share=0 buyTime=datetime.strpdatetime('2018-08-18','%Y-%m-%d') sellTime=datetime.strpdatetime('2018-08-19','%Y-%m-%d') def __init__(...
2018-08-19 23:31:26
23374
原创 Python出现bound method
class Asset(object): def __init__(self,id,price): self.__id=id self.__price=price def getID(self): return(self.__id) def setID(self,idValue): if type(idVal...
2018-08-19 23:02:58
35354
原创 友元函数的使用举例,出什么问题了
代码如下,为何输出 是不可预知的数,而不是4,6,作用域如何解释呢,各位大神?iclude<iostream>using namespace std;class Rectangle{//public: int width; int height; public: Rectangle(){} Rectangle(int x,int...
2018-08-19 13:36:56
320
原创 为什么这样写要???是不是跟程序的执行顺序有关?
#define _CRT_SECURE_NO_WARNINGS#include#includeint main(){int a, b;scanf("%d,%d\n", &a, &b);printf("刚才输入的两个数字分别是");printf("%d,%d", a, b);printf("。\n");printf("他们的和是"); int c = a
2017-09-26 22:57:02
222
原创 代码出错了 删掉对应的行 就正常了 !不知道什么问题???
// boolean 1个字节 byte 1个字节 short 2个字节 //int 4个字节 long 8个字节 double 8个字节 float 4个字节 char 2个字节 // c语言中数据类型比java少一些,在c语言中没有boolean类型的数据 int 1代表真 0代表假 // char,int,float,double,signed,unsigned,l
2017-09-19 22:24:45
407
原创 数据类型长度
// boolean 1个字节 byte 1个字节 short 2个字节 //int 4个字节 long 8个字节 double 8个字节 float 4个字节 char 2个字节 // c语言中数据类型比java少一些,在c语言中没有boolean类型的数据 int 1代表真 0代表假 // char,int,float,double,signed,unsigned,l
2017-09-19 22:11:18
410
原创 符号常量使用练习
/*在程序执行过程中,其值不发生改变的量称为常量。符号常量:用标示符代表一个常量。在C语言中,可以用一个标识符来表示一个常量,称之为符号常量。符号常量在使用之前必须先定义,其一般形式为:#define 标识符 常量其中#define也是一条预处理命令(预处理命令都以"#"开头),称为宏定义命令(在后面预处理程序中将进一步介绍),其功能是把该标识符定义为其后的常量值。
2017-09-19 22:08:19
1180
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人