Skip to content

Commit 09b9f61

Browse files
authored
Bootcamp review
1 parent 74c3461 commit 09b9f61

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1-
# NowCoder Practice Python | 牛客网python练习 [牛客题霸部分](https://www.nowcoder.com/exam/oj?page=1&tab=Python篇&topicId=314)
1+
# NowCoder Practice Python | 牛客网python练习: [牛客题霸部分](https://www.nowcoder.com/exam/oj?page=1&tab=Python篇&topicId=314)
22
夯实基础部分
33
## Key Points ✏️
4+
* int 类型的整数具有任意精度。这意味着整数的取值范围仅受限于可用内存,而不像某些编程语言中整数的大小受限于固定的字节数;
5+
* 在 Python 中,float 类型的浮点数通常是基于 IEEE 754 双精度浮点数标准存储的,这意味着它在内存中占用 64 位(8 字节)。其取值范围和精度如下:
6+
7+
范围:约为 1.8 × 10^−308 到 1.8×10^308 精度:有效数字约为 15-17 位十进制数
8+
9+
* Binary: 加号 + 作为二元运算符时用于将两个操作数相加 uniary作为一元运算符时用于表示数值的正号
10+
* 牢记运算优先顺序
11+
```
12+
3------9 输出 *12*
13+
3+-+-+-2 输出 *1*
14+
3*4**5 输出 48
15+
```
416
* 巧用`type`判断类型
517
* 进制转换`int(i,16)``i`代表要被转换的数字 `16`代表转换成十六进制
618
* 大小写转换

0 commit comments

Comments
 (0)