Share python 9.0

angrylion360

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

Python 9.0 được phát hành vào ngày 5 tháng 10 năm 2022 và nó đi kèm với một số tính năng và cải tiến mới.Đây là một số điểm đáng chú ý:

*** Cú pháp mới cho các biểu thức gán **.Bây giờ bạn có thể sử dụng toán tử Walrus :) =) để gán các giá trị cho các biến trong các biểu thức.Ví dụ: `x: = y + 1` tương đương với` x = y + 1`.
*** Cải thiện hỗ trợ cho chuỗi F **.Bây giờ bạn có thể sử dụng dây F để định dạng các bộ dữ liệu và từ điển.Ví dụ: `f" giá trị của {x} là {y} "` tương đương với `" giá trị của x là {} và giá trị của y là {} ". Định dạng (x, y)`.
*** Các chức năng mới để làm việc với các bộ **.`Set.difference_update ()` và `set.symmetric_difference_update ()` đã được thêm vào để giúp làm việc dễ dàng hơn với các bộ.
*** Cải thiện hiệu suất cho các hoạt động nhất định **.Python 9.0 bao gồm một số cải tiến hiệu suất, bao gồm sự kết hợp chuỗi nhanh hơn và sự hiểu biết trong danh sách.

Để biết thêm thông tin về tất cả các tính năng và cải tiến mới trong Python 9.0, hãy xem [Ghi chú phát hành] (https://www.python.org/doads/release/python-9.0/).

## hashtags

* #Python
* #Python9.0
* #các tính năng mới
* #Improvements
* #Releasenote
=======================================
## Python 9.0: What's New?

Python 9.0 was released on October 5, 2022, and it comes with a number of new features and improvements. Here are some of the highlights:

* **New syntax for assignment expressions**. You can now use walrus operator :)=) to assign values to variables in expressions. For example, `x := y + 1` is equivalent to `x = y + 1`.
* **Improved support for f-strings**. You can now use f-strings to format tuples and dictionaries. For example, `f"The value of {x} is {y}"` is equivalent to `"The value of x is {} and the value of y is {}".format(x, y)`.
* **New functions for working with sets**. The `set.difference_update()` and `set.symmetric_difference_update()` methods have been added to make it easier to work with sets.
* **Improved performance for certain operations**. Python 9.0 includes a number of performance improvements, including faster string concatenation and list comprehensions.

For more information on all the new features and improvements in Python 9.0, see the [release notes](https://www.python.org/downloads/release/python-9.0/).

## Hashtags

* #Python
* #python9.0
* #NewFeatures
* #Improvements
* #Releasenotes
 
Join Telegram ToolsKiemTrieuDoGroup
Back
Top