- 博客(28)
- 收藏
- 关注
转载 2021-06-22 C#数组简要说明
C# 数组原文地址https://www.cnblogs.com/peida/archive/2009/02/19/1394030.html数组概述C# 数组从零开始建立索引,即数组索引从零开始。C# 中数组的工作方式与在大多数其他流行语言中的工作方式类似。但还有一些差异应引起注意。声明数组时,方括号 ([]) 必须跟在类型后面,而不是标识符后面。在 C# 中,将方括号放在标识符后是不合法的语法。int[] table; // not int table[];另一细节是,数组的大小不是其类型的一
2021-06-22 19:48:41
1640
转载 2021-06-20 C# IList
https://www.cnblogs.com/zuochengsi-9/p/4863718.htmlIList与List相比,只是重载的区别。在方法使用上没有太大区别声明IList IList11 =new List ();List List11 =new List ();
2021-06-20 11:08:23
1853
原创 python 镜像源安装
递归要点:pip install scipy -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com 安装包名安装常见问题Could not fetch URL https://pypi.org/simple/numpy/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', por
2021-05-29 11:09:50
1742
原创 C# Dapper连接mysql数据库
先整个标记吧!免得到时候又要翻箱倒柜。C# 连接设置1using MySql.Data.MySqlClient;using System.Data;using System;public class Conn{ String server = "localhost"; String username = "root"; String password = "123456"; String database = "btu"; String port = "8
2021-05-27 15:07:16
2234
原创 react修改默认启动端口号
react修改默认启动端口号package.json"scripts": { "start": "set PORT=8888 && react-scripts start ", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject"},
2021-05-05 21:29:33
535
原创 Net.Core Webapi 文件上传接口
感谢https://www.youtube.com/watch?v=ungZ-BaVvZk&ab_channel=ThumbIKR-ProgrammingExamples的教程。Net.Core Webapi 文件上传接口Net版本 5.0Controller设置Controller文件夹,ImageUploadController.cs文件,这里为了简化操作,将Model文件里面的 FileUploadAPI也移到里面了。using Microsoft.AspNetCore.Mvc;u
2021-05-03 18:49:50
4228
1
原创 C#求解Array、List等最大值
被这个问题卡了好长时间,都2021年了,最大最小值这种函数不可能还需要人手写了吧!但直接用Max函数又提示不存在该函数,而Math.Max()函数的参数又只能是两个数值类型,范围及其有限。今天,我终于找到答案了,要引用System.Linq,才能用Max()等函数类型using System.Linq;示例:using System.Linq;...List<int> vs = new List<int> { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }
2021-04-26 07:06:47
721
原创 revit二次开发2016
revit插件制作简易流程实现目标:hello world基本步骤下载安装visual studio (可任意版本)如果电脑里面已经有了visual studio,可以跳过这一步下载,安装vistual studio installer下载地址:https://visualstudio.microsoft.com/zh-hans/vs/ 选择Community版本,下载打开加速器,选好节点(不然无法下载后面的几十M文件),打开安装包继续->等待下载完毕安装对应组件
2021-02-03 11:41:45
393
原创 记录bug ImportError: attempted relative import.....
应该是一个官方bug,很难修改项目场景:在django中测试mongo数据库情况,然后就出问题了test.pyfrom .models import *# Create your tests here.class A(object): passif __name__ == "__main__": pass问题描述:run运行,出现错误ImportError: attempted relative import with no known parent pack
2020-12-19 16:00:38
1715
1
原创 css
简单记下心得吧!基本写法<style>table {}.clearfix {}#button1 {}</style>元素,class,id三种样式的写法!不要搞混了,其次,对于css样式对span标签无效,必须在span内部建一个class样式或者id号才行。注意元素间隔:内部 padding 外部 margin文字居中:text-align: center;绝对位置(强行定位)position: absolute;关于tabletable
2020-12-09 11:56:00
94
原创 npm报错 404 no found
又到了日常报错的时候!这个报错是真tm迷惑!报错主要内容:> npm install> node-sass@4.13.1 install E:\document\GitHub\cjq\Autodesk-Forge-Demo\node_modules\node-sass> node scripts/install.jsDownloading binary from https://npm.taobao.org/mirrors/node-sass/v4.13.1/win32-x6
2020-12-07 10:30:58
2286
转载 vue project目录结构!
参考链接:https://www.runoob.com/vue2/vue-directory-structure.htmlgithub上面有几个
2020-12-07 09:53:57
328
原创 创建vue项目(2.9.6)
查看vue版本vue --version2.9.6node -vv15.0.1win+x 管理员打开 powershell(建议管理员身份启动,不然容易报错,ps:vscode和webstrom等终端默认是user身份启动。所以,建议还是用powershell创建vue项目)cd XXXvue init webpack my_learning2? Project name my_learning2? Project description A Vue.js project? Auth
2020-12-04 19:57:42
520
原创 2020-11-28 npm打包失败
问题:npm run build然后就出问题了ERROR TypeError: Class extends value undefined is not a constructor or null参考 https://blog.youkuaiyun.com/u013938484/article/details/106259913npm install webpack -gnpm install webpack --save-dev启动成功!OK!...
2020-11-28 19:48:03
1833
1
原创 2020-11-28 npm 启动失败
第一个错误:Error: Cannot find module ‘webpack’> bim-project@4.2.0 start E:\document\GitHub\cjq\btudjango\btu-font> npm run serve> bim-project@4.2.0 serve E:\document\GitHub\cjq\btudjango\btu-font> vue-cli-service serve ERROR Error loading
2020-11-28 19:12:28
485
原创 pip 错误!ERROR: Cannot determine archive format of C:\Users\...
今天用阿里云安装python库的时候,报错!pip install -I https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com/pypi.cn -r requirements.txtCollecting https://mirrors.aliyun.com/pypi/simple/ Using cached https://mirrors.aliyun.com/pypi/simple/ (13.9 MB)
2020-11-28 16:44:16
4842
1
转载 django post接口传输
django post接口传输参考文档:https://www.jianshu.com/p/7af7e1e783eehttps://blog.youkuaiyun.com/user_san/article/details/109654028?utm_medium=distribute.pc_relevant.none-task-blog-title-2&spm=1001.2101.3001.4242
2020-11-26 11:44:06
160
原创 vue项目启动失败,Cannot find module ‘@vue/cli-shared-utils‘ 已解决
npm 启动vue 项目失败!启动命令:npm run serve npm run serve> bim-project@4.2.0 serve> vue-cli-service servenode:internal/modules/cjs/loader:903 throw err; ^Error: Cannot find module '@vue/cli-shared-utils'Require stack:- E:\document\1111-vscodewor
2020-11-25 11:12:07
19088
1
原创 npm -4048
看说明,以管理员模式启动就行了,不过我这是vscode终端 ,那就重新打开vscode右键管理员就行了,实在不行就win+x用powshell执行npm 命令
2020-11-23 21:06:42
283
原创 centOS7系统nginx卸载安装和使用
之前装了一次nginx,但实在不知道怎么用,还稀里糊涂的配了一个conf文件,然后就出问题了[root@VM-0-3-centos btu]# nginx -tnginx: [emerg] "worker_processes" directive is not allowed here in /etc/nginx/conf.d/nginx.conf:2nginx: configuration file /etc/nginx/nginx.conf test failed很烦,反正nginx不大,直接
2020-11-19 19:59:02
1043
原创 WARNINGS: MariaDB Strict Mode is not set for database connection ‘default‘
问题在linux搭建django项目时出现了如下警告:WARNINGS:?: (mysql.W002) MariaDB Strict Mode is not set for database connection 'default' HINT: MariaDB's Strict Mode fixes many data integrity problems in MariaDB, such as data truncation upon insertion, by escalating
2020-11-19 16:53:52
984
转载 安装mariaDB
mariaDB是个好东西呀!!!参考连接https://www.cnblogs.com/yhongji/p/9783065.html1. 安装mariaDByum install mariadb-server2. 初始配置开启服务设置为开机自启动进行数据库的配置(我好像找到mysql数据库启动失败的问题了)[root@mini ~]# systemctl start mariadb # 开启服务[root@mini ~]# systemctl enable mariadb [ro
2020-11-19 16:20:00
240
原创 数据库启动失败 Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘
项目场景:系统centOS7 安装mysql数据库,版本5.75,登录,启动失败主要参考了https://blog.youkuaiyun.com/Bb15070047748/article/details/106245223/ 这篇文章来进行安装。问题描述:无法启动,之前就是这种情况,没办法,打算重装一次试试,结果还是出问题[root@VM-0-3-centos my_project]# mysql -uroot -pEnter password: ERROR 2002 (HY000): Can't
2020-11-19 15:44:57
300
转载 yum用法
YUMyum针对软件包操作常用命令:1.使用YUM查找软件包命令:yum search2.列出所有可安装的软件包命令:yum list3.列出所有可更新的软件包命令:yum list updates4.列出所有已安装的软件包命令:yum list installed5.列出所有已安装但不在 Yum Repository 内的软件包命令:yum list extras6.使用YUM获取软件包信息命令:yum info7.列出所有可更新的软件包信息命令:yum info updat
2020-11-19 14:32:16
145
转载 mysql 和mysqld
mysql 是命令行程序,而mysqld是服务,所以,启动mysql服务时要用mysqldsystemctl start mysqld.serviceservice stop mysqldd的全称是daemon ,即后台
2020-11-18 21:26:30
437
原创 mysql 异常记录 2020-11-18 ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket
2020-11-18前几天还好好的,今天发现mysq突然就打不开了[root@VM-0-3-centos init.d]# mysql -uroot -pEnter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)2002报错,无法连接。启动mysql服务器[root@VM-0-3-centos mysql]# sys
2020-11-18 21:22:14
176
原创 python 错误 invalid character in identifier
python 错误 invalid character in identifier这种错误很容易遇到,如果不是代码自身有问题的话,那大概率是复制粘贴的问题,程序很有可能识别不出来tap和空格的区别,所以就报错解决办法也很简单,直接手打就行了。要闲麻烦可以先格式化一下,把空格tap什么的替换掉再试试。...
2020-11-03 20:32:03
500
原创 二维列表数据转换成字符串
```python# 二维数组转换与字符的相互转换# test = [[1, 2, 300], [5, 4, 5]]def num_to_str(num): string = '' for i in num: string = string + '/' for j in i: string = string + str(j)+',' return string# a = num_to_str(test)# .
2020-09-28 21:42:48
2686
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人