命名py脚本时,不要与python预留字,模块名等相同,即Python文件名不要使用Python系统库的名字,就是因为使用了Python系统库的名字,所以在编译的时候才会产生.pyc文件。正常的Python文件在编译运行的时候是不会产生.pyc文件的! 这类问题的解决方法则是:更改python脚本的 ...
分类:
其他好文 时间:
2020-07-17 19:27:07
阅读次数:
76
1、编译 ./configure --prefix=/usr/local/nginx-1.8\ --with-http_stub_status_module\ (统计数据查看) --with-pcre=/opt/install/nginx/pcre-8.44\ (正则) --with-http_su ...
分类:
Web程序 时间:
2020-07-17 19:22:38
阅读次数:
72
nginx 添加 --with-http_stub_status_module --with-http_ssl_module
分类:
Web程序 时间:
2020-07-17 16:29:55
阅读次数:
91
1、编译 ./configure --prefix=/usr/local/nginx-1.8\ --with-http_stub_status_module\ (统计数据查看) --with-pcre=/opt/install/nginx/pcre-8.44\ (正则) --with-http_su ...
分类:
Web程序 时间:
2020-07-17 16:16:30
阅读次数:
71
现有的项目是采用vue cli4.0脚手架生成的,现在想要引入typescript。 1.执行安装命令 npm install --save-dev typescript npm install --save-dev @vue/cli-plugin-typescript 2.根目录下新建 tscon ...
分类:
其他好文 时间:
2020-07-17 16:14:07
阅读次数:
46
##HMR热模块替换 HMR:hot moddule replacement 热模块替换 作用:一个模块发生变化,只会重新打包这个模块,极大的提升了构建速度 样式文件:可以使用HMR,style-loader内部实现 js文件:默认没有HMR功能,需要修改js代码,添加支持该功能的代码 HMR功能对 ...
分类:
Web程序 时间:
2020-07-17 16:11:55
阅读次数:
75
1、在组件中直接使用style,注意,div1各个属性值加双引号 const div1 = { width: "300px", margin: "30px auto", backgroundColor: "#44014C", //驼峰法 minHeight: "200px", boxSizing: ...
分类:
Web程序 时间:
2020-07-17 14:00:41
阅读次数:
74
python脚本:autoStaticRDMTask.py # import os, django os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wanwenyc.settings") django.setup() # # 独运行某一个py文件时会 ...
分类:
编程语言 时间:
2020-07-17 11:40:46
阅读次数:
89
问题 原来是这么写的,但是报错了! const CleanWebpackPlugin = require('clean-webpack-plugin'); module.exports = { plugins: [ new CleanWebpackPlugin(['dist']) // 打包之前,会 ...
分类:
Web程序 时间:
2020-07-17 11:25:23
阅读次数:
92
Go版本在1.11之后推出了go module模式来管理依赖(还有go get、vendor这两种方式),使用go mod时下载的依赖文件在$GOPATH/pkg/mod/下。本文以两种办法介绍如何创建go mod项目。 go mod是时候用起来了! 目录 第1种:假如你一开始就用goland开启旅 ...
分类:
其他好文 时间:
2020-07-16 21:14:51
阅读次数:
88