这是一篇我犯过的各种弱智错误的合集,记录下来以备后用 1.scanf("%d",a); 2.BFS忘记设置队头元素; 3.BFS时忘记每次循环结束后head++ 3.并查集的使用:fa[find(x)] = find(y); 4.(经常导致段错误)邻接表遍历,循环时一顿操作最后忘记将当前边指针指向下 ...
分类:
其他好文 时间:
2020-07-03 21:23:44
阅读次数:
69
软件著作权申报时,使用Linux系统find命令如何统计项目行数 案例:我们查询当前目录下的php,js,css,html文件的代码行数,并忽略./App/Runtime 和 ./Uploads 目录下的文件find ./ "(" -path "./App/Runtime" -o -path "./ ...
分类:
系统相关 时间:
2020-07-03 19:19:37
阅读次数:
71
pip install pyecharts from pyecharts import Bar 报错:ImportError: cannot import name 'Bar' from 'pyecharts' (D:\anaconda\lib\site-packages\pyecharts\__i ...
分类:
其他好文 时间:
2020-07-03 17:34:21
阅读次数:
198
目的:分享Pycharm中使用正则的分组匹配来进行批量替换的小技巧 一、PyCharm的搜索/替换快捷键: 查找:Ctrl+F 替换:Ctrl+R 查找是Find,替换是Replace。 二、正则表达式匹配 用途:文本处理 1.相同字符串匹配替换处理: 2.土办法匹配字符串替换处理: 3.正则匹配字 ...
分类:
编程语言 时间:
2020-07-03 17:24:04
阅读次数:
76
schtasks /create /sc once /st 00:00 /tn start_jingxi_H5 /tr D:\bat_list\start_jingxi_H5.vbs /F /RU ******(运行账户) /RP *******(运行账户密码)schtasks /run /tn s ...
分类:
其他好文 时间:
2020-07-03 17:20:35
阅读次数:
73
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the fo ...
分类:
其他好文 时间:
2020-07-03 15:34:00
阅读次数:
55
说点废话 当我们正常在界面系统使用selenium时,会感觉很爽,因为能清楚的看到我们代码的实现的过程,当遇到报错,也能相对来说缩小错误范围,一般都能很快的找到问题所在; 倘若我们想在Linux环境(无界面)中使用selenium,虽然在官网可以下载到linux环境下的chromedriver驱动文 ...
分类:
系统相关 时间:
2020-07-03 12:08:34
阅读次数:
75
挺久没有登录的 oracle 数据库,因为公司要求加固密码,登录后修改失败 1、启动数据库的同时启动控制文件、数据文件,提示:cannot mount database in EXCLUSIVE mode 2、启动数据库的同时启动控制文件、不启动数据文件,提示:database not mounte ...
分类:
数据库 时间:
2020-07-03 10:36:46
阅读次数:
132
Maximum Subarray (E) 题目 Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and retur ...
分类:
其他好文 时间:
2020-07-03 09:14:00
阅读次数:
76
方式一: [root@localhost ~]# find / -name mysql //在根目录下查找文件名为mysql的文件夹 方式二: [root@localhost ~]# find /user/local/mysql -name \*.bin //目录“/usr/local/mysql” ...
分类:
系统相关 时间:
2020-07-03 01:06:48
阅读次数:
81