参考资料: https://www.yoyomooc.com/yoyomooc/52.keeping-domain-models-and-database 删除尚未应用到数据库的最新迁移 删除已经应用到数据库的迁移 EF Core删除迁移的命令是Remove-Migration。一次只删除一个迁移, ...
分类:
其他好文 时间:
2020-06-28 12:58:04
阅读次数:
122
1. Your goal in this kata is to implement a difference function, which subtracts one list from another and returns the result. It should remove all va ...
分类:
其他好文 时间:
2020-06-28 09:41:17
阅读次数:
75
Conda 环境增删改查 添加 conda create -n py36 python=3.6 删除 conda remove -n py36 --all 修改 修改 conda 虚拟环境的名称,通过 clone 实现。 这里将 py36 名称修改为 pyenv。实现方式:1.克隆原环境,并设置新的 ...
分类:
其他好文 时间:
2020-06-27 11:21:39
阅读次数:
63
从微信下载安全验证文件上传到服务器django项目的templates目录下 配置相应的url路由确保能能通过微信验证 from django.views.generic import TemplateView from django.conf.urls import url, include fr ...
分类:
微信 时间:
2020-06-26 22:26:47
阅读次数:
81
1. 安装之前,先清除之前安装的旧版本 docker,如果有的话。 sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrot ...
分类:
系统相关 时间:
2020-06-26 22:13:24
阅读次数:
59
当大量数据时,尽量用tuple print 80*'-' print sys.getsizeof(objiect) print dir(sys) print help(sys.getsizeof) tuple 的快速写法: test1 = 1, test2 = 1 test3 = 1,2,3 a = ...
分类:
其他好文 时间:
2020-06-26 22:04:17
阅读次数:
48
id is == #id is(内存地址和判断内存地址是否相同) #id 相同,值不一定相同 #值相同,id不一定相同 # s1 = [1, 2, 3] # s2 = [1, 2, 3] # # print(id(s1)) # # print(id(s2)) # # s1 ='holting' # ...
分类:
其他好文 时间:
2020-06-26 20:29:11
阅读次数:
57
Yes, you can remove the CD-ROM (or or original installation media) from the sources.list Edit the sources.list file with the following command: sudo n ...
分类:
其他好文 时间:
2020-06-26 20:01:57
阅读次数:
58
这篇文章介绍下mybatis的一级缓存的生命周期 一级缓存的产生 一级缓存的产生,并不是看mappper的xml文件的select方法,看下面的例子 mapper.xml <select id="getById" resultType="entity.TempEntity"> select * fr ...
分类:
其他好文 时间:
2020-06-26 18:26:34
阅读次数:
42
a = frame.drop_duplicates(subset=['pop'],keep='first') #保留重复数据的第一个 b = frame.drop_duplicates(subset=['pop'],keep=False) #去掉重复的数据 ...
分类:
其他好文 时间:
2020-06-26 16:06:44
阅读次数:
40