Share python 3.9.6

smallwolf498

New member
## Python 3.9.6: Có gì mới

Python 3.9.6 được phát hành vào ngày 13 tháng 10 năm 2021. Đây là một bản phát hành nhỏ bao gồm một số sửa chữa và cải tiến lỗi.

### Các tính năng mới

* Cú pháp định dạng `f-string` hiện hỗ trợ các đối số vị trí.Điều này có nghĩa là bây giờ bạn có thể sử dụng `f-strings` để định dạng các giá trị theo cùng một thứ tự mà chúng xuất hiện trong biểu thức.Ví dụ: mã sau sẽ in cùng đầu ra như ví dụ trước:

`` `Python
Tên = "John Doe"
Tuổi = 30
print (f "{name} là {Age} tuổi")
`` `

* Hàm `breakpoint ()` đã được thêm vào mô -đun `sys`.Hàm này có thể được sử dụng để tạo điểm dừng trong mã của bạn, điều này sẽ dừng thực hiện chương trình và cho phép bạn kiểm tra trạng thái của chương trình.

* Mô -đun `Kiểm tra` đã được cập nhật để bao gồm một số tính năng mới, bao gồm khả năng lấy mã nguồn cho một chức năng hoặc lớp và khả năng nhận được số dòng của một câu lệnh nhất định.

### Sửa lỗi

* Một số lỗi đã được cố định trong mô -đun `asyncio`, bao gồm cả một lỗi có thể gây bế tắc khi sử dụng hàm` called () `.

* Một lỗi đã được khắc phục trong lớp `com thu. Chuỗi` có thể gây ra kết quả không chính xác khi đếm các mục được thêm vào bộ đếm nhiều lần.

* Một lỗi đã được sửa trong mô -đun `re` có thể gây ra kết quả không chính xác khi khớp với các mẫu nhất định.

### Cải tiến

* Hiệu suất của mô -đun `json` đã được cải thiện.

* Tài liệu cho mô -đun `asyncio` đã được cải thiện.

* Thông báo lỗi cho một số lỗi đã được cải thiện.

## Tài nguyên

* [Ghi chú phát hành Python 3.9.6] (https://www.python.org/doads/release/python-396/)
* [Tài liệu Python 3.9.6] (3.12.0 Documentation)

## hashtags

* #Python
* #python3
* #Python39
* #Python396
* #các tính năng mới
=======================================
## Python 3.9.6: What's New

Python 3.9.6 was released on October 13, 2021. This is a minor release that includes a number of bug fixes and improvements.

### New Features

* The `f-string` formatting syntax now supports positional arguments. This means that you can now use `f-strings` to format values in the same order that they appear in the expression. For example, the following code will print the same output as the previous example:

```python
name = "John Doe"
age = 30
print(f"{name} is {age} years old")
```

* The `breakpoint()` function has been added to the `sys` module. This function can be used to create a breakpoint in your code, which will stop the execution of the program and allow you to inspect the state of the program.

* The `inspect` module has been updated to include a number of new features, including the ability to get the source code for a function or class, and the ability to get the line number of a given statement.

### Bug Fixes

* A number of bugs have been fixed in the `asyncio` module, including a bug that could cause deadlocks when using the `gather()` function.

* A bug has been fixed in the `collections.Counter` class that could cause incorrect results when counting items that were added to the counter multiple times.

* A bug has been fixed in the `re` module that could cause incorrect results when matching certain patterns.

### Improvements

* The performance of the `json` module has been improved.

* The documentation for the `asyncio` module has been improved.

* The error messages for a number of errors have been improved.

## Resources

* [Python 3.9.6 Release Notes](https://www.python.org/downloads/release/python-396/)
* [Python 3.9.6 Documentation](https://docs.python.org/3/)

## Hashtags

* #Python
* #python3
* #Python39
* #Python396
* #NewFeatures
 
Join Telegram ToolsKiemTrieuDoGroup
Back
Top