Skip to content

Commit 2539521

Browse files
authored
Merge pull request #2 from quecpython/main
updata
2 parents c206642 + 84ec2ac commit 2539521

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1592
-568
lines changed

_sidebar.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
* [QuecPython 异常处理](/zh-cn/faq/)
1111
* [**English**](/en-us/)
1212
* [Video tutorial](https://space.bilibili.com/491326023/channel/detail?cid=150963)
13-
* [Step By Step](/en-us/sbs/)
1413
* [Python Basis](/en-us/python/)
1514
* [QuecPython API](/en-us/api/)
1615
* [QuecPython FAQ](/en-us/faq/)

en-us/_sidebar.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<!-- docs/_sidebar.md -->
22

3-
* [**Step By Step Manual**](/en-us/sbs/)
43
* [Video tutorial](https://space.bilibili.com/491326023/channel/detail?cid=150963)
54
* [Python Basis](/en-us/python/)
65
* [QuecPython API](/en-us/api/)

en-us/api/QuecPythonClasslib.md

Lines changed: 429 additions & 78 deletions
Large diffs are not rendered by default.

en-us/api/_sidebar.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
<!-- docs/_sidebar.md -->
22
* [Video tutorial](https://space.bilibili.com/491326023/channel/detail?cid=150963)
3-
* [Step By Step Manual](/en-us/sbs/)
43
* [Python Basis](/en-us/python/)
54
* [**QuecPython API**](/en-us/api/)
5+
* [python Basic](/en-us/api/pythonBasic.md)
6+
* [python Stdlib](/en-us/api/pythonStdlib.md)
7+
* [QuecPython Classlib](/en-us/api/QuecPythonClasslib.md)
8+
* [QuecPython Thirdlib](/en-us/api/QuecPythonThirdlib.md)
69
* [QuecPython FAQ](/en-us/faq/)
710
* [**Wiki HomePage**](/en-us/)
811
* [**Official Website**](//qpy.quectel.com)

en-us/api/pythonStdlib.md

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,28 +1432,21 @@ By default, C types are represented in the machine's native format and byte orde
14321432

14331433
**** Formatted Character Table****
14341434

1435-
| Format | C Type | Python type | Standard size |
1436-
| ------ | -------------------- | ----------------- | ------------- |
1437-
| `x` | pad byte | no value | |
1438-
| `c` | `char` | bytes of length 1 | 1 |
1439-
| `b` | `signed char` | integer | 1 |
1440-
| `B` | `unsigned char` | integer | 1 |
1441-
| `?` | `_Bool` | bool | 1 |
1442-
| `h` | `short` | integer | 2 |
1443-
| `H` | `unsigned short` | integer | 2 |
1444-
| `i` | `int` | integer | 4 |
1445-
| `I` | `unsigned int` | integer | 4 |
1446-
| `l` | `long` | integer | 4 |
1447-
| `L` | `unsigned long` | integer | 4 |
1448-
| `q` | `long long` | integer | 8 |
1449-
| `Q` | `unsigned long long` | integer | 8 |
1450-
| `n` | `ssize_t` | integer | |
1451-
| `N` | `size_t` | integer | |
1452-
| `f` | `float` | float | 4 |
1453-
| `d` | `double` | float | 8 |
1454-
| `s` | `char[]` | bytes | |
1455-
| `p` | `char[]` | bytes | |
1456-
| `P` | `void *` | integer | |
1435+
| Format | C Type | Python type | Standard size |
1436+
| ------ | -------------------- | ----------- | ------------- |
1437+
| `b` | `signed char` | integer | 1 |
1438+
| `B` | `unsigned char` | integer | 1 |
1439+
| `h` | `short` | integer | 2 |
1440+
| `H` | `unsigned short` | integer | 2 |
1441+
| `i` | `int` | integer | 4 |
1442+
| `I` | `unsigned int` | integer | 4 |
1443+
| `l` | `long` | integer | 4 |
1444+
| `L` | `unsigned long` | integer | 4 |
1445+
| `q` | `long long` | integer | 8 |
1446+
| `Q` | `unsigned long long` | integer | 8 |
1447+
| `f` | `float` | float | 4 |
1448+
| `d` | `double` | float | 8 |
1449+
| `P` | `void *` | integer | 4 |
14571450

14581451
By default, C types are represented in the machine's native format and byte order, and are correctly aligned by skipping padding bytes if necessary (according to the rules used by the C compiler)
14591452

@@ -1763,6 +1756,15 @@ if __name__ == '__main__':
17631756

17641757
This module provide functions and variables related to the QuecPython runtime environment. This module implements a subset of the corresponding [CPython](https://docs.micropython.org/en/latest/reference/glossary.html#term-CPython) module, as described below. For more information, refer to the original CPython documentation: [sys](https://docs.python.org/3.5/library/sys.html#module-sys)
17651758

1759+
Note: The new architecture code upgrades the version of MPY from sys to usys. You are advised to use the following methods to import modules
1760+
1761+
```python
1762+
try:
1763+
import usys as sys
1764+
except ImportError:
1765+
import sys
1766+
```
1767+
17661768
**Constants**
17671769

17681770
> **sys.argv**

en-us/python/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ In [11]: b
157157
Out[11]: [1, 2, 3, 4]
158158
```
159159

160-
![](C:\Users\sonia.liu\AppData\Roaming\Typora\typora-user-images\image-20210728153707264.png)
160+
![](images\image-20210728153707264.png)
161161

162162
It is important to understand what Python references mean, when, how, and why data is replicated. Especially when you use Python to deal with large data sets.
163163

@@ -1452,7 +1452,7 @@ It takes a while to get familiar with using slices, especially if you've learned
14521452
14531453
![](images\1244.jpg)
14541454
1455-
![image-20210728171647093](C:\Users\sonia.liu\AppData\Roaming\Typora\typora-user-images\image-20210728171647093.png)
1455+
![image-20210728171647093](images\image-20210728171647093.png)
14561456
14571457
You can take one element at a time by using ` step ` after the second colon:
14581458

en-us/sbs/README.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

en-us/sbs/_sidebar.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

en-us/sbs/aliyun/README.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

en-us/sbs/aliyun/aliyun.pdf

-1.07 MB
Binary file not shown.

0 commit comments

Comments
 (0)