• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
孙龙 程序员
少时总觉为人易,华年方知立业难
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 75 下一页
2018年4月2日
python面向对象之依赖注入
摘要: C:\Python35\python.exe D:/py_django/test/a3.pyfoo_123bar_123Process finished with exit code 0 C:\Python35\python.exe D:/py_django/test/a4.py<__main__. 阅读全文
posted @ 2018-04-02 11:35 孙龙-程序员 阅读(642) 评论(0) 推荐(0)
python面向对象接口和抽象类
摘要: 接口: 抽象类和抽象方法: 阅读全文
posted @ 2018-04-02 11:27 孙龙-程序员 阅读(84) 评论(0) 推荐(0)
Python中一切事物都是对象之类创建的本质
摘要: 读以下代码: 1 2 3 4 5 6 class Foo(object): def __init__(self): pass obj = Foo() # obj是通过Foo类实例化的对象 1 2 3 4 5 6 class Foo(object): def __init__(self): pass 阅读全文
posted @ 2018-04-02 11:27 孙龙-程序员 阅读(230) 评论(0) 推荐(0)
django框架form说明
摘要: #!/usr/bin/env python# -*- coding:utf-8 -*-import refrom django import formsfrom django.core.exceptions import ValidationErrordef mobile_validate(valu 阅读全文
posted @ 2018-04-02 11:26 孙龙-程序员 阅读(132) 评论(0) 推荐(0)
Django一对一模型
摘要: 阅读全文
posted @ 2018-04-02 11:23 孙龙-程序员 阅读(72) 评论(0) 推荐(0)
Django创建
摘要: 1创建project django-admin startproject mysite 2创建app cd mysite python startapp app01 python F:\py_django\manage.py runserver 127.0.0.1:8009 同步一下数据库 pyth 阅读全文
posted @ 2018-04-02 11:22 孙龙-程序员 阅读(73) 评论(0) 推荐(0)
python之django数据模型ForeignKey
摘要: 2、连表结构 一对多:models.ForeignKey(其他表) 多对多:models.ManyToManyField(其他表) 一对一:models.OneToOneField(其他表) model.py from django.db import modelsclass Blog(models 阅读全文
posted @ 2018-04-02 11:22 孙龙-程序员 阅读(250) 评论(0) 推荐(0)
Django多对多模型
摘要: 总结: 其他: 阅读全文
posted @ 2018-04-02 11:22 孙龙-程序员 阅读(122) 评论(0) 推荐(0)
python进程池高级版本
摘要: C:\Python31\python.exe D:/pythoncode/a8.py 1 0 2 4 3 7 6 6 5 9 8 10 11 12 13 14 15 18 16 17 19 5 0 5 0 20 21 20 24 23 22 25 26 29 29 28 29 28 27 30 31 阅读全文
posted @ 2018-04-02 11:21 孙龙-程序员 阅读(103) 评论(0) 推荐(0)
python多线程low版本
摘要: #!/usr/bin/env python# -*- coding: utf-8 -*-import queueimport threadingclass threadpool(): def __init__(self,max_num): self.q = queue.Queue(max_num) for i in range(max_num): ... 阅读全文
posted @ 2018-04-02 11:20 孙龙-程序员 阅读(122) 评论(0) 推荐(0)
上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 75 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3