摘要:
运行环境: Linux 系统 安装: sudo apt-get install supervisor 启动,停止,重启,重置,查看进程状态: sudo service supervisor start sudo service supervisor stop sudo service supervi 阅读全文
阅读排行榜
006: 基本控制语句 if 与 bool 数据类型
2016-01-04 16:53 by Miles.Yao, 652 阅读, 收藏,
摘要:
1. bool类型与其他数据类型之间存在一个隐式的转换关系,与javascript极其相似:Any object can be tested for truth value, for use in aniforwhilecondition or as operand of the Boolean o... 阅读全文
virtualenv(Python 虚拟环境)
2016-11-25 10:26 by Miles.Yao, 544 阅读, 收藏,
摘要:
1. 安装 $ pip install virtualenv 2. 生成环境 $ virtualenv -p /usr/bin/python3.5 env # -p参数指定python版本 3. 激活,取消激活 $ source env/bin/activate $ deactivate 阅读全文
002: 基本类型-数值型(int, float)
2015-12-29 19:18 by Miles.Yao, 439 阅读, 收藏,
摘要:
基本类型中数值类型有 int, float, Decimal, Fraction其中int 和 float 是比较常见的类型, 而Decimal 和 Fraction 不是那么常见, 所以暂时学习int 和 float.Division (/) always returns a floatTo do... 阅读全文
016: class and objects > 多重继承与多态的例子
2016-01-23 22:04 by Miles.Yao, 429 阅读, 收藏,
摘要:
房屋代理模型:1. Propertyclass Property(object): def __init__(self, square_feet='', num_bedrooms='', num_baths='', **kwargs): super().__init__(**kw... 阅读全文
浙公网安备 33010602011771号