摘要: public class LeetCode13 { //字典 private int zidian(char zidian){ switch (zidian){ case 'I':return 1; case 'V':return 5; case 'X':return 10; case 'L':re 阅读全文
posted @ 2020-07-23 21:45 树袋熊丶 阅读(233) 评论(0) 推荐(0) 编辑
摘要: public class LeetCode9 { //回文数判断方法 public boolean huiwen(int num){ //存放回文数 int rec=num,newRec=0; //负数和个位为零的数不可能是回文数 //修改,0是回文数,所以需判断num是不是等于0 if(num<0 阅读全文
posted @ 2020-07-23 21:43 树袋熊丶 阅读(157) 评论(0) 推荐(0) 编辑
摘要: public class LeetCode7 { //数据存放 public static int num; //依次存放单个数据单位 public static int newRec; //存放反转数据,并初始化为0 public static int rec=0; public static v 阅读全文
posted @ 2020-07-23 21:42 树袋熊丶 阅读(194) 评论(0) 推荐(0) 编辑
摘要: public class Sum { //标记数组 private static int target; //目标数组 private static int a[]={0,4,3,0};; //循环数 private static int i,j; //标记数 private static int 阅读全文
posted @ 2020-07-23 21:41 树袋熊丶 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 当使用cmd.exe输入net start mysql后出现服务名无效错误 此时需要找到正确的mysql服务名,使用win+r输入services.msc或者ctrl+shift+esc并点击服务,找到MYSQL一项 发现服务名为MySQL80,此时输入正确的服务名即可开启和关闭服务 /////// 阅读全文
posted @ 2020-03-15 23:37 树袋熊丶 阅读(1186) 评论(0) 推荐(0) 编辑
摘要: 当使用cmd.exe输入mysql出现 'mysql'不是内部或外部命令,也不是可运行的程序或批处理文件。 此时说明没有正确配置mysql环境变量,此时点击我的电脑-属性-高级系统设置-环境变量 然后寻找系统变量path点击编辑(如果没有path则新建) 将mysql.exe所在的bin目录文件位置 阅读全文
posted @ 2020-03-15 23:22 树袋熊丶 阅读(1086) 评论(0) 推荐(0) 编辑
摘要: 首先出现 ERROR 1045 (28000):Access denied for user 'root'@'localhost' (using password: NO) (拒绝访问用户“root”@“localhost”(使用密码:NO)) 此时提醒你需要输入密码才可进入数据库,使用mysql 阅读全文
posted @ 2020-03-15 13:16 树袋熊丶 阅读(914) 评论(0) 推荐(0) 编辑