mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-26 21:30:55 +08:00
commit
6f14ad053b
@ -7,32 +7,32 @@
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
|
||||
Python 3.10 beta in Fedora Linux
|
||||
Fedora Linux 中的 Python 3.10 测试版
|
||||
======
|
||||
|
||||
![][1]
|
||||
|
||||
The Python developers have already released three beta versions of Python 3.10.0. You can try the latest one in Fedora Linux today! Test your Python code with 3.10 early to be ready for the final 3.10.0 release in October.
|
||||
Python 开发者已经发布了 Python 3.10.0 的三个测试版本。今天,你可以在 Fedora Linux 中试用最新的版本 尽早用 3.10 测试你的 Python 代码,为 10 月份的 3.10.0 最终版本做好准备。
|
||||
|
||||
### Install Python 3.10 on Fedora Linux
|
||||
### 在 Fedora Linux 上安装 Python 3.10
|
||||
|
||||
If you run Fedora Linux, you can install Python 3.10 from the official software repository with _dnf_:
|
||||
如果你运行 Fedora Linux,你可以用 _dnf_ 从官方仓库安装 Python 3.10:
|
||||
|
||||
```
|
||||
$ sudo dnf install python3.10
|
||||
```
|
||||
|
||||
You might need to enable the _updates-testing_ repository to get the very latest pre-release:
|
||||
你可能需要启用 _updates-testing_ 仓库来获得最新的预发布版本:
|
||||
|
||||
```
|
||||
$ sudo dnf install --enablerepo=updates-testing python3.10
|
||||
```
|
||||
|
||||
As more betas and release candidates [will be released][2], the Fedora package will receive updates. No need to compile your own development version of Python, just install it and have it up to date. The Python developers will add no new features starting with the first beta; you can already enjoy all the new things.
|
||||
随着更多的测试版和候选版[将被发布][2],Fedora 包将得到更新。不需要编译你自己的 Python 开发版本,只要安装它就可以获得最新。从第一个测试版开始,Python 开发者将不增加新的功能。你已经可以享受所有的新东西了。
|
||||
|
||||
### Test your projects with Python 3.10
|
||||
### 用 Python 3.10 测试你的项目
|
||||
|
||||
Run the _python3.10_ command to use Python 3.10 or create virtual environments with the [builtin _venv_ module, tox][3] or with [pipenv][4] and [poetry][5]. Here’s an example using _tox_:
|
||||
运行 _python3.10_ 命令来使用 Python 3.10,或者用[内置的 _venv_ 模块 tox][3] 或用 [pipenv][4] 和 [poetry][5] 创建虚拟环境。下面是一个使用 _tox_ 的例子:
|
||||
|
||||
```
|
||||
$ git clone https://github.com/benjaminp/six.git
|
||||
@ -56,11 +56,11 @@ ________________________ summary _________________________
|
||||
congratulations :)
|
||||
```
|
||||
|
||||
If you find a problem with Python 3.10 on Fedora Linux, please do [file bug reports at Fedora’s bugzilla][6] or in the [Python’s issue tracker][7]. If you aren’t sure if it is a problem in Python, you can [contact the Fedora’s Python maintainers][8] directly via email or IRC.
|
||||
如果您在 Fedora Linux 上发现了 Python 3.10 的问题,请[在 Fedora 的 bugzilla 上提交 bug 报告][6]或在 [Python 的问题追踪][7]上提交。如果你不确定这是否是 Python 的问题,你可以[通过电子邮件或 IRC 直接联系 Fedora 的 Python 维护者][8] 。
|
||||
|
||||
### What’s new in Python 3.10
|
||||
### Python 3.10 中的新内容
|
||||
|
||||
See the [full list of news in Python 3.10][9]. You can, for example, try out [structural pattern matching][10]:
|
||||
参见 [Python 3.10 的全部新闻列表][9]。例如,你可以尝试一下[结构模式匹配][10]:
|
||||
|
||||
```
|
||||
$ python3.10
|
||||
@ -87,7 +87,7 @@ X=3, Y=10
|
||||
10
|
||||
```
|
||||
|
||||
And stay tuned for [Python 3.10 as _python3_ in Fedora Linux 35][11]!
|
||||
请继续关注 [Fedora Linux 35 中将采用 Python 3.10 作为 _python3_][11]!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
@ -95,7 +95,7 @@ via: https://fedoramagazine.org/python-3-10-beta-in-fedora-linux/
|
||||
|
||||
作者:[Miro Hrončok][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
译者:[geekpi](https://github.com/geekpi)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
Loading…
Reference in New Issue
Block a user