1.数字
在python里面支持几种类型:整形(int)、布尔型(bool)、浮点型(float)、复数(也叫虚数,complex)
布尔类型
整数
浮点数
bool=False;
print bool;
bool=True;
print bool;
int=20;
print int;
float=2.3;
print float;
...
分类:
编程语言 时间:
2015-08-11 14:14:32
阅读次数:
157
负数的平方根是虚数。不能使用sqrt,因为它只能处理浮点数,而虚数是完全不同的——这也是由另外一个叫做cmath(即 complex math, 复数)的模块来实现这些功能的原因。>>> import cmath>>> cmath.sqrt(-1)1j注意,这里并没有使用 from ... impo...
分类:
编程语言 时间:
2015-08-08 13:21:56
阅读次数:
472
IntroductionVideo decode (e.g. YouTube playback) and encode (e.g. video chat applications) are some of the most complex compute operations on the mode...
分类:
Web程序 时间:
2015-08-07 08:16:41
阅读次数:
215
在python的交互环境中,隐藏着一个彩蛋。
输入import this, 你将看到Tim Peters写的“Zen of Python”:
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Compl...
分类:
编程语言 时间:
2015-08-04 11:12:30
阅读次数:
124
Introduce class without pointer members, take Class Complex as an example
分类:
编程语言 时间:
2015-08-02 11:29:00
阅读次数:
149
Build 10x FasterRich mobile games and apps in record timeCoronais designed to enable super-fast development. Our elegantAPIsmake adding complex featur...
分类:
其他好文 时间:
2015-07-30 19:20:29
阅读次数:
121
Problem Description
Mr Wang wants some boys to help him with a project. Because the project is rather complex,
the more boys come, the better it will be. Of course there are certain requirements....
分类:
其他好文 时间:
2015-07-29 19:23:08
阅读次数:
135
Description ResourcePathLocationTypecvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'. One of '{"http://java.sun.co...
分类:
Web程序 时间:
2015-07-29 13:46:53
阅读次数:
148
极客班GeekBand - C++面向对象高级开发 - 2极客班GeekBand - C面向对象高级开发 - 2
讲师 - 侯捷
复习Complex类的实现过程
三大函数拷贝构造拷贝复制析构
栈堆与内存管理
Stack VS Heap
stack objectsstatic local objectsglobal objects的生命期
heap objects的生命周期
new先分配memory再...
分类:
编程语言 时间:
2015-07-28 18:46:55
阅读次数:
310
yum安装依赖的包yuminstallcmakegccgcc-c++makencurses-develbisonwget编译安装useradd-s/sbin/nologin-Mmysqlcdmysql5.6.4cmake.-DCMAKE_INSTALL_PREFIX=/usr/local/mysql-DINSTALL_DATADIR=/data/mysql-DMYSQL_UNIX_ADDR=/tmp/mysql.sock-DDEFAULT_CHARSET=utf8-DDEFAULT_COL..
分类:
数据库 时间:
2015-07-27 16:51:25
阅读次数:
209