楼主: Enthuse
1896 1

Python numeric types [推广有奖]

  • 4关注
  • 39粉丝

已卖:995份资源

大师

8%

还不是VIP/贵宾

-

威望
0
论坛币
75391 个
通用积分
825.9999
学术水平
103 点
热心指数
114 点
信用等级
86 点
经验
299244 点
帖子
12952
精华
0
在线时间
5848 小时
注册时间
2007-4-7
最后登录
2024-1-22

楼主
Enthuse 发表于 2015-5-2 02:45:46 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
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


二维码

扫码加我 拉你入群

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

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

关键词:numeric python Types Eric type

沙发
Enthuse 发表于 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

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-10 01:48