Date
Oct. 25th, 2024
 
2024年 9月 23日

Post Tag: "Python" #2

A Developer's Faux Pas
Python
19 posts tagged as #Python#.
Aug
03
Python: RegEx
Published 12:08 Aug 03, 2015 by @ezra.
#Programming# 本文主要介绍 Python 正则表达式的基本使用. re模块 re 模块使用 Python 拥有全部的正则表达式功能 re.I(re.IGNORECASE) #忽略大小写(括号内是完整写法) re...
Mar
31
Python : 单例模式的实现
Published 12:03 Mar 31, 2015 by @ezra.
#Programming# 单利模式(Singleton)是大部分开发任务中常用的设计模式之一。这里我主要总结一下 Python 中的单利实现方式。 我综合了许多人的意见,主要有这样几种实现方式: 类实例与类变量绑定。 ...
Mar
01
Python: 统计代码行数
Published 12:03 Mar 01, 2015 by @ezra.
#Programming# 无所事事,忽然想到统计一下自己写的项目的代码行数。 #!/usr/bin/env python3 import os, sys, getopt thisFile = os.path.splitex...
Mar
21
Python : tree
Published 12:03 Mar 21, 2014 by @ezra.
#Programming# 用 Python 实现一个 tree 指令的模拟,后面有时间再做优化: import os def main(): while True: path = input('Inp...
Mar
20
Python : Calculator
Published 12:03 Mar 20, 2014 by @ezra.
#Programming# 用 Python 实现一个 GUI 计算器的基本思路,后面有时间会添加更高级的计算功能: from __future__ import division import ui shows_result ...
Apr
22
PIP Primer
Published 12:04 Apr 22, 2013 by @ezra.
#Programming# 本文主要介绍 PIP 的基本用法。 安装 方法一 sudo easy_install pip 方法二 移步 https://pypi.python.org/pypi/pip 下载安装。 方法三 移...
Nov
10
Python 运算符优先级 对照表
Published 12:11 Nov 10, 2012 by @ezra.
#Programming# 这个表给出Python的运算符优先级 (从低到高) 。 从最低的优先级 (最松散地结合) 到最高的优先级 (最紧密地结合) 。 这意味着在一个表达式中,Python会首先计算表中较下面的运算符,然后...
Prev
1 2
Next
Pinned Message
HOTODOGO
The Founder and CEO of Infeca Technology.
Developer, Designer, Blogger.
Big fan of Apple, Love of colour.
Feel free to contact me.
反曲点科技创始人和首席执行官。
开发、设计与写作皆为所长。
热爱苹果、钟情色彩。
随时恭候 垂询