codeforces 翻译
Project description
codeforces translate
安装
pip install codeforces-translate
如果你换源了,请使用以下命令进行安装
pip install -i https://pypi.org/simple/ codeforces-translate
注意警告,若警告 python script 路径未添加到系统 PATH 中,请及时添加。
更新
pip install --upgrade codeforces-translate
基本功能
- 翻译一个问题
- 翻译一场比赛
- 输出为 $pdf$
快速使用
# cf-translate contest_id
# 翻译 Codeforces Round 859 (Div. 4)
# https://codeforces.com/contest/1807/problems
cf-translate 1807
# 翻译 The 2022 ICPC Asia Xian Regional Contest
# https://codeforces.com/gym/104077/problems
cf-translate 104077
# cf-translate contest_id id
# 翻译 Codeforces Round 859 (Div. 4) 的 A 题
# https://codeforces.com/contest/1807/A
cf-translate 1807 A
# 翻译 The 2022 ICPC Asia Xian Regional Contest 的 A 题
cf-translate 104077 A
以上命令会在当前路径下生成翻译后的 $markdown$ 文档,然后在支持 $markdown$ 的程序里预览
效果
注意
翻译一场比赛时,暂不支持无 problems 的比赛,你可以选择单独翻译一道问题
翻译采用谷歌翻译,请确保你能正常访问谷歌翻译
有时 codeforces 会挂掉,此程序会查询 5 分钟
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for codeforces_translate-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 996d5c165add818941f8b11b8c2c456e6fa1addc2ff06ec4159654a672c1c63d |
|
MD5 | d36a8dda27019ab8cc4743c1f6ea3e21 |
|
BLAKE2b-256 | 94da6cb4002b8a464d25614bbc6e18794b52c9d99ddd01e98dfdc4c8900f0c4a |
Close
Hashes for codeforces_translate-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d86a0c0913d72e8789210cccc00de4a52e250438b0a4f1084c9e1f389ad707c7 |
|
MD5 | cfc816a8e9fb02d5ec6c6ac89deb4ef8 |
|
BLAKE2b-256 | 677d1c3ef0ea04eba5a15e59311d3a720a193ca3d3c2f75f3366884bb3cacac8 |