全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 python论坛
1910 1
2015-05-02
Python's numeric types are:
1. Integer and floating-point objects
2. Complex number objects
3. Decimal: fixed-precision objects
4. Fraction: rational number objects
5. Sets: collections with numeric operations
6. Booleans: true and false
7. Built-in functions and modules: round, math, random, etc
8. Expressions; unlimited integer precision; bitwise opeations; hex, octal, and binary formats
9. Thrid-party extensions: vector, libraries, visualzation, plotting, etc

Built-in numeric operations:
1. Expression operators: +,-,*,/,>>,**,&,
2. Built-in math functions: pow, abs, round, int, hex, bin, etc
3. Utility modules: random,math, etc


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2015-5-2 02:59:44

SOme interesting notes:

X // y: Floor division

Unlimited prevision integers are convenient

Complex numbers:  (2+1j)**3

Octal literals: 0o1, 0o20, 0o377, oct(64)

Hex literals: 0x01, 0x10, 0xFF, hex(64)

Binary: 0b1, 0b10000, 0b111111, bin(64)

string formatting: '%o, %x, %X' %(64, 64, 255)

Bitwise operations: | << >> &

Decimals are fixed point float

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群