05 2020 档案

摘要:1.将 city_code_cn.json 中的省、市、区,翻译成英文,或直接替换去掉省、市 如:苏州市 -> 苏州 转成拼音后就变成 Suzhou,否则就会转成 Suzhoushi 怪怪的 import pypinyin import re def pinyin(word): s = '' for 阅读全文
posted @ 2020-05-28 18:35 VipSoft 阅读(647) 评论(0) 推荐(0)
摘要:1.输入乱码如图 2.Preferences -> Browse Packages.. 3.加入 "env": { "PYTHONIOENCODING": "utf8" } 重新编译,可输出中文 阅读全文
posted @ 2020-05-27 16:46 VipSoft 阅读(363) 评论(0) 推荐(0)
摘要:1.安装 netaddr 组件 pip install netaddr -i https://mirrors.aliyun.com/pypi/simple/ from netaddr import IPNetwork print('https://ipjisuanqi.com/#121.224.14 阅读全文
posted @ 2020-05-23 21:53 VipSoft 阅读(2083) 评论(0) 推荐(0)
摘要:1.查出有哪些约束 SELECT CONSTRAINT_NAME,CONSTRAINT_TYPE,STATUS FROM USER_CONSTRAINTS WHERE TABLE_NAME ='D_DRUG_DICTIONARY'; 2.删除 唯一约束 ALTER TABLE D_DRUG_DICT 阅读全文
posted @ 2020-05-23 01:08 VipSoft 阅读(3256) 评论(0) 推荐(0)
摘要:1.Demo,实际项目中不这么使用 class Program { static void Main(string[] args) { //缓存的配置 MemoryCacheOptions cacheOps = new MemoryCacheOptions() { //缓存最大为100份 //##注 阅读全文
posted @ 2020-05-16 14:37 VipSoft 阅读(1567) 评论(0) 推荐(0)
摘要:Startup.cs public class Startup { public static readonly ILoggerFactory efLogger = LoggerFactory.Create(builder => { builder.AddFilter((category, leve 阅读全文
posted @ 2020-05-15 20:54 VipSoft 阅读(2823) 评论(0) 推荐(0)
摘要:using NLog; private static Logger logger = LogManager.GetCurrentClassLogger(); //初始化日志类 NLog.config <?xml version="1.0" encoding="utf-8" ?> <nlog xmln 阅读全文
posted @ 2020-05-15 11:01 VipSoft 阅读(880) 评论(0) 推荐(0)
摘要:1.Nuget包添加引用: X.PagedList.Mvc.Core 2.View: @using VipSoft.Web.Model @model X.PagedList.IPagedList<VipSoft.Web.Model.DBEntity.Job> @using X.PagedList.M 阅读全文
posted @ 2020-05-14 19:56 VipSoft 阅读(1467) 评论(0) 推荐(0)
摘要:StartUp.cs public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( nam 阅读全文
posted @ 2020-05-14 13:57 VipSoft 阅读(280) 评论(0) 推荐(0)
摘要:Startup.cs public void Configure(IApplicationBuilder app, IHostingEnvironment env) { app.UseCorsMiddleware(); //其它代码...... } CorsMiddleware.cs using S 阅读全文
posted @ 2020-05-12 20:56 VipSoft 阅读(473) 评论(1) 推荐(0)