• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

jwang106


脚踏实地,日拱一卒。 建立新的神经链接,可不像公园散步那样简单。
  • 博客园
  • 联系
  • 管理
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页

2019年8月26日

fine report 连接mysql (mac)

摘要: 把 /Applications/FineReport/webapps/webroot/WEB INF/lib 下mysql connector java 5.1.39 bin.jar 删掉 在 http://central.maven.org/maven2/mysql/mysql connector 阅读全文

posted @ 2019-08-26 15:30 jwang106 阅读(422) 评论(0) 推荐(0)

2019年8月25日

Union比or快 Using UNION is faster when it comes to cases like scan two different column。

摘要: problem: 595. Big Countries A country is big if it has an area of bigger than 3 million square km or a population of more than 25 million. Write a SQL 阅读全文

posted @ 2019-08-25 10:01 jwang106 阅读(303) 评论(0) 推荐(0)

2019年8月21日

django manager

摘要: django manager 在语句Book.objects.all()中,objects是一个特殊的属性,需要通过它查询数据库。 总之,模块manager是一个对象,Django模块通过它进行数据库查询。 每个Django模块至少有一个manager,你可以创建自定义manager以定制数据库访问 阅读全文

posted @ 2019-08-21 21:06 jwang106 阅读(278) 评论(0) 推荐(0)

2019年8月20日

python slot

摘要: 每个实例包含一个字典,slot 让实例变成tup 或list,减少内存,但不能再增加属性 For classes that primarily serve as simple data structures, you can often greatly reduce the memory footp 阅读全文

posted @ 2019-08-20 10:47 jwang106 阅读(318) 评论(0) 推荐(0)

2019年8月15日

node js 操作redis promise

摘要: 连接 基础操作 Native Promises If you are using node v8 or higher, you can promisify node_redis with util.promisify as in: now getAsync is a promisified vers 阅读全文

posted @ 2019-08-15 18:53 jwang106 阅读(1329) 评论(0) 推荐(0)

django面试题

摘要: 1. 哪些class可以继承 阅读全文

posted @ 2019-08-15 16:13 jwang106 阅读(84) 评论(0) 推荐(0)

2019年8月14日

redis笔记

摘要: 批量删除 redis cli keys "trade " | xargs redis cli del 更好的方式 redis保存时间序列 用key value格式 key是 data:datakind:2019:01:01 redis 读写分离 为了拓展读性能,为redis提供故障转移(failov 阅读全文

posted @ 2019-08-14 18:00 jwang106 阅读(139) 评论(1) 推荐(0)

2019年8月12日

逻辑题

摘要: 海盗博弈问题 问题: 有五个理性的海盗(不妨以 A E 命名)找到了100个金币,需要想办法分配金币。 而他们的分配原则是:海盗们从 A 到 E 依次提出一种分配方案。所有还活着的海盗投票决定是否接受这个提案,包括提议人。必须要多于半数的人投赞成票,提案才通过,此时按照提议分配金币。如果没有通过,那 阅读全文

posted @ 2019-08-12 14:23 jwang106 阅读(425) 评论(0) 推荐(0)

2019年8月11日

django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.

摘要: pip install mysqlclient 在init里 阅读全文

posted @ 2019-08-11 22:20 jwang106 阅读(244) 评论(0) 推荐(0)

2019年8月10日

python 100day notes(2)

摘要: python 100day notes(2) 1. str 2. list 3. tuple 这里有一个非常值得探讨的问题,我们已经有了列表这种数据结构,为什么还需要元组这样的类型呢? 元组中的元素是无法修改的,事实上我们在项目中尤其是多线程环境中可能更喜欢使用的是那些不变对象(一方面因为对象状态不 阅读全文

posted @ 2019-08-10 09:06 jwang106 阅读(123) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 ··· 14 下一页
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3