摘要: 数据模型其实是对Python框架的描述,它规范了这门语言自身构建模块的接口,这些模块包括但不限于序列,迭代器,函数,类和上下文管理器 一摞Python风格的纸牌 主要说明两个方法 __getitem__ 以及 __len__ Card = collections.namedtuple('Card', 阅读全文
posted @ 2020-02-20 10:50 C`Moriarty 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 函数 def 开头+方法名+(参数) # 函数 def print_hello(name) : name = "Alice" temp = "temp" print("Hello," + name) print(num) name = "Tom" num = 15 # 这个定义是全局的 print_ 阅读全文
posted @ 2020-02-09 12:14 C`Moriarty 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 祝大家新年快乐? 好久没更blog了,真的不是我懒,我有好好学习的,比方说《Python编程,从入门到实践》这本书其实我已经看完了,《Fluent Python》我也看的差不多了,至于《高性能MySQL》看了一半了,实在太难了。 没错,其实我只是没有写blog的习惯(捂脸) 字典 先来看个例子 al 阅读全文
posted @ 2020-02-09 11:01 C`Moriarty 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 列表 简单来说列表就是由一系列按特定顺序排列的元素的集合 在Python中。用方括号 [] 来表示列表,并用逗号分隔其中的元素 访问的方式类似其他语言 变量名[index] names = ["alices","bob","tom"] print(names[0]) print(names) pri 阅读全文
posted @ 2019-11-19 12:03 C`Moriarty 阅读(206) 评论(0) 推荐(0) 编辑
摘要: MySQL 逻辑架构 最上层的服务并不是MySQL所独有的,大多数基于网络的客户端/服务器的工具或者服务都有类似的架构 第二层是MySQL的核心服务功能所在的一层,包括一些查询解析,分析,优化,缓存以及所有的内置函数 第三层包含了存储引擎。存储引擎复制MySQL中数据的存储和提取 连接管理与安全性 阅读全文
posted @ 2019-11-18 16:07 C`Moriarty 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 由于一些原因,我不得不去要用python去做开发了,就开始学习python,之前的基础只能让我读懂代码,并简单开发,现在正好系统学习一下 变量 首先来看一段代码 name = "Alice" print(name) 我们添加了一个名字为name的变量,其值为"Alice”,运行之后,会打印出 “Al 阅读全文
posted @ 2019-11-15 19:08 C`Moriarty 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 这次主要想谈一谈《上海堡垒》这个电影 我并没有去电影院看这片,主要原因是,我知道这个片的时候它已经下架了。 我主要想从一个RTS玩家的视角去谈。我并非一个严格的RTS玩家,我只喜欢RA3,命令与征服系列罢了 《上海堡垒》这电影槽点有多少,实在是吐不完的地步,我也不在去赘述了。 就讲一讲它在“战略”这 阅读全文
posted @ 2019-09-23 22:05 C`Moriarty 阅读(255) 评论(0) 推荐(0) 编辑
摘要: Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. Example 1: Input: [ [ 1, 2, 3 ], [ 4, 5, 6 ], 阅读全文
posted @ 2018-11-11 19:53 C`Moriarty 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numb 阅读全文
posted @ 2018-11-11 18:45 C`Moriarty 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Given an array consists of non-negative integers, your task is to count the number of triplets chosen from the array that can make triangles if we tak 阅读全文
posted @ 2018-11-10 23:02 C`Moriarty 阅读(188) 评论(0) 推荐(1) 编辑
/* 鼠标点击求赞文字特效 */ /*鼠标跟随效果*/