摘要: 一. 计算机是什么基本组成: 主板+cpu+内存 cpu: 主频, 核数(16) 内存:大小(8G, 16G, 32G) 型号: DDR3, DDR4, DDR5, 主频(海盗船,玩家国度) 显卡: 显存。型号(N-GTX 1080 TI, A)。位宽 240显卡(512MB) 210 1... 阅读原文
2018-07-03 10:02:06 阅读(1384) 评论(0)
摘要: ## 使用__slots__限制类的属性   - 之前说到,可以通过在类外部实例或者类名任意定义实例属性或者类属性或者方法 1 class Person(object): 2 pass 3 4 5 Person.name = "Stanley" # 在外部添加类... 阅读原文
2018-07-03 08:47:01 阅读(1371) 评论(0)
摘要: menu = {'浙江':{'杭州':{'拱墅':{}, '西湖':{}, '富阳':{}}, '宁波':{'鄞州':{}, '海曙':{}, ... 阅读原文
2018-07-03 08:42:02 阅读(1364) 评论(0)
摘要: Django的数据库 1.在Django_test下的view.py里面model定义模型 from django.db import models # Create your models here. # 定义游戏模型类,继承models.Model class GameInfo(mode... 阅读原文
2018-07-03 07:05:03 阅读(1380) 评论(0)
摘要: 控制颜色 Color Color Name b blue c cyan g green k black m magenta r red w white y yellow plt.plot(x1, y1, fmt1, x2... 阅读原文
2018-07-03 06:09:07 阅读(1597) 评论(0)
摘要: python使用imap接收邮件的过程探索 https://www.cnblogs.com/yhlx/archive/2013/03/22/2975817.html   #! encoding:utf8 ''' 环境: Win10 64位 Python 2.7.5 参考: http://ww... 阅读原文
2018-07-03 06:00:04 阅读(1138) 评论(0)
摘要: python工具安装 python下载:https://www.python.org/downloads/windows/ 下载页面有很多版本可供选择、版本里面又区分 web-based/executable/embeddable zip file 类型,区别如下 : 大意: web-based: ... 阅读原文
2018-07-03 00:33:03 阅读(1441) 评论(0)
摘要:   a=0for number in range(1,101): a=a+number print (a)   阅读原文
2018-07-03 00:06:02 阅读(1420) 评论(0)
摘要: python在给变量赋值时默认格式为int。 转换为str的方法为: str() 如图:   阅读原文
2018-07-02 23:23:02 阅读(1058) 评论(0)
摘要: ## 属性的类型   - 属性可分为类属性和实例属性   - 实例属性可以通过在类中使用self定义,或者直接在类外部使用实例变量定义 1 class Person(object): 2 def __init__(self, name, age): 3 self.name ... 阅读原文
2018-07-02 23:15:02 阅读(1260) 评论(0)