Skip to main content

codeforces 翻译

Project description

codeforces translate

Github

Blog

安装

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

codeforces_translate-0.1.2.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

codeforces_translate-0.1.2-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page