无趣

享受自由


  • Home

  • About

  • Tags

  • Archives

iPhone7 初体验

Posted on 2017-06-16 |
Symbols count in article: 724 | Reading time ≈ 0:01

垂涎 iPhone 7 已久,正好京东 618(并没有打折) 入了一部

Read more »

代码解析 - envoy

Posted on 2017-05-09 |
Symbols count in article: 5.1k | Reading time ≈ 0:05

envoy 是对 Python 标准库中 subprocess 模块的封装, 虽然功能对比原生 subprocess 来说少了很多,但是更易于使用,Github 项目地址

Read more »

Git - log

Posted on 2017-03-24 |
Symbols count in article: 10k | Reading time ≈ 0:10

git 是一款非常牛逼的分布式代码管理工具,Linux 之父 linus torvalds 所编写,是目前全世界最流行的代码管理工具,全世界最大的代码托管平台 Github 就是基于 git 做的,无数的开源项目使用 git ,如果不会 git 简直无法在开源世界立足,因为最近在看 《pro git》 这本书,所以我会写几篇 git 的文章,这篇文章主要介绍 git log 子命令的一些用法

Read more »

Python - SQLAlchemy

Posted on 2017-03-18 |
Symbols count in article: 8.4k | Reading time ≈ 0:08

Python 中有很多连接数据库的模块,pymysql、psycopg2、sqlite3 等,但是通常情况下我们都不会单独使用它们,因为程序可能需要支持多个数据库,而且直接通过调用 SQL 的方式去获取数据库中的数据会使得代码维护成本变高,这种情况下可能就要用到 ORM (数据关系映射, Object Relational Mapping),而 Python 中最著名的 ORM 当属 SQLAlchemy 了

Read more »

Python Web编程 - WSGI

Posted on 2017-03-17 |
Symbols count in article: 3.8k | Reading time ≈ 0:04

WSGI 是服务器与应用程序通信的接口规范,在 PEP-3333 提出,如果一个 Web 框架基于 WSGI 规范编写,那么它就可以运行在任意支持 WSGI 规范的 Web 服务器上,httpd、nginx 以及 Python 标准库中的 wsgiref 等 Web 服务器都支持 WSGI 规范,而 django、flask 这些基于 WSGI 的 Web 框架也都能够运行在这些服务器上

Read more »

Python Web 编程 - CGI

Posted on 2017-03-16 |
Symbols count in article: 4.2k | Reading time ≈ 0:04

所谓的动态网页就是会根据某些变量,渲染出不同的页面,曾经的 Web 后端开发主要就是通过服务端脚本生成 HTML 文档给用户,但是这已经过时了,现在流行前后端分离的架构,后端只提供 API,前端通过调用后端 API 获取数据,因为现在前端可以做很多事,是门大学问,坑也非常多,这里就不说了,本文主要介绍已经过时的 Web 开发的基础, CGI 协议

嗯,我在胡说八道

Read more »

Python 网络编程 - socket

Posted on 2017-03-15 |
Symbols count in article: 7.6k | Reading time ≈ 0:08

如果希望我们的程序能够通过网络进行调用,就需用到网络编程的模块,Python 最基础的网络程序就是 通过 socket 来编写,高级一点的就是所谓的 Web 编程了,底层无非也就是 socket 通信,本文主要介绍 socket 这个模块的用法

Read more »

Python - 多线程

Posted on 2017-03-12 |
Symbols count in article: 11k | Reading time ≈ 0:11

当我们写的程序需要并发时,我们就需要用到 Python 中的一些并发库,例如 asyncio、thread、 multiprocessing 等,本文主要介绍 Python 标准库中的多线程库 thread

Read more »

Python - 元类

Posted on 2017-03-10 |
Symbols count in article: 3.3k | Reading time ≈ 0:03

元类是 Python 的黑魔法之一,大多数人都不需要掌握,但是可以用来装逼,所以写一篇元类的博客

Read more »

Python - 描述器

Posted on 2017-03-08 |
Symbols count in article: 8.4k | Reading time ≈ 0:08

很多时候我们可能需要对某个实例的属性加上除了修改、访问之外的其他处理逻辑,例如 类型检查、数值校验等,就需要用到描述器 《Python Cookbook》

Read more »
1…345
AnyISalIn

AnyISalIn

Life is short

45 posts
39 tags
RSS
GitHub E-Mail
Links
  • Flowsnow
© 2021 AnyISalIn | Symbols count total: 167k | Reading time total: 2:47
Powered by Hexo
|
Theme — NexT.Mist v6.0.4