- 博客(6)
- 收藏
- 关注
转载 apt-get 安装软件时,显示无法定位软件包
遇到这种情况,可以换一个镜像源试试:在/etc/apt/sources.list 文件中像下面这样添加一行: deb http://ubuntu.mirror.cambrium.nl/ubuntu/ lucid main universe 可以用任意一个镜像源地址代替http://ubuntu.mirror.cambrium.nl/ubuntu/ 推荐使用163源 h
2016-12-26 23:28:14 2405
转载 django auto_now与auto_now_add的区别
uto_now无论是你添加还是修改对象,时间为你添加或者修改的时间。auto_now_add为添加时的时间,更新对象时不会有变动。
2016-12-26 21:48:37 316
原创 django中数据库一对一,一对多,多对多关系
一对多:设置外键 typeID=models.ForeignKey('UserType')多对多:class Group(models.Model): name=models.CharField(max_length=30)class User(models.Model): name=models.CharField(max_length=
2016-12-26 20:38:18 326
转载 ubuntu安装mysql可视化工具MySQL-workbench及简单操作
http://blog.csdn.net/jgirl_333/article/details/48575281
2016-12-26 20:13:44 300
转载 python装饰器
http://www.cnblogs.com/feixuelove1009/p/5541632.html装饰器例子:def outer(func): def inner(): print("认证成功!") result = func() print("日志添加成功") return result r
2016-11-03 10:09:10 121
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人