Skip to main content

中文Python内置函数封装库,让你用中文写代码。

Project description

「bttmb 3.1.0 中文Python库完整介绍」

⚽️ 「核心定位」

逐步完善并汉化覆盖 Python 语言,让编程新手也能快速入门学习

🧱 「版本信息」

当前版本:v3.1.0

🀄️ 「已完成汉化模块」

  • 内置函数
  • 高级运算函数
  • 拓展函数
  • turtle库
  • math库
  • random库
  • pygame库(部分)

🧍‍♂️ 「适用人群」

  • 三级以下学生:适配学习,轻松上手
  • 四级及以上:可试用 pygame 模块(玩家向)
  • 大项目(如 sys 等模块):暂无法完成完整中文覆盖

💻 「代码示例」

一、汉化海龟绘图

--python-- import bttmb as 编程 编程.苏醒乌龟(别名="小龟龟") 编程.小龟龟.速度(10)#老玩家注意:speed里的0我搞成了10,新手好懂。 for 次数 in 编程.重复数字(1,11):#新手注意:顾头不顾尾。 编程.小龟龟.前进(100) 编程.小龟龟.后退(100) 编程.小龟龟.左转(36) 编程.小龟龟.隐藏()

二、基础内置函数使用

--python-- import bttmb as bc bc.打印("hahh",678) bc.打印(bc.判断质数(7))

三、Pygame使用

--python--   三、Pygame游戏使用

--python-- import bttmb as w w.苏醒玩家(窗口大小=(1200,800),别名="j") w.苏醒随机('r') i=1 x=w.r.随机数(100,1100) y=w.r.随机数(100,700) while i: w.j.填充颜色((240,240,240)) if x<=w.j.鼠标状态()[0][0]<=x+50 and y<=w.j.鼠标状态()[0][1]<=y+50: if w.j.鼠标状态()[1][0]: x=w.r.随机数(100,1100) y=w.r.随机数(100,700) else: w.j.画按钮((x,y),(50,50),"Here!",(255,130,130),(0,0,0),20) else: w.j.画按钮((x,y),(50,50),"Here!",(255,160,160),(0,0,0),20) if 10<=w.j.鼠标状态()[0][0]<=60 and 10<=w.j.鼠标状态()[0][1]<=60: if w.j.鼠标状态()[1][0]: w.j.填充颜色((240,240,240)) w.j.写文字("Game Over",(30,300),(50,50,50),300) i=0 else: w.j.画按钮((10,10),(50,50),"Exit",(130,255,130),(0,0,0),20) else: w.j.画按钮((10,10),(50,50),"Exit",(160,255,160),(0,0,0),20) w.j.处理退出() w.j.帧率(70)

✍️ 「作者与相关信息」

  • 作者:BURTTRAVER
  • 投诉&协作邮箱:13149412996@163.com
  • PyPI 直达链接:https://pypi.org/project/bttmb/
  • 版本更新日志:0.4.0 ➡ 2.0.0 ➡ 2.4.5 ➡ 2.4.9 ➡ 2.5.0 ➡ 2.7.0 ➡ 3.0.0 ➡ 3.0.1 ➡ 3.1.0 ➡ 3.1.5 ➡ 3.1.7 ➡ 3.2.0 ➡ 3.2.2 ➡ 3.3.0 ➡ 3.5.0 ➡ 3.5.5 ...
  • 仓库地址:仅发布在 PyPI,暂不入驻 GitHub 「喵!中国10岁男孩在GitHub失踪了…因为他没有账号!」 📄 「许可证」 MIT License plaintext

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

bttmb-3.1.0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bttmb-3.1.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file bttmb-3.1.0.tar.gz.

File metadata

  • Download URL: bttmb-3.1.0.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for bttmb-3.1.0.tar.gz
Algorithm Hash digest
SHA256 8cb57ebe6877e53b7413f6f82853b8ee43db01f0b5917b77c2b7e6038948347c
MD5 7769066d1a4bfa72730c6f9d5ea3acea
BLAKE2b-256 da65075bb1417bb3cdcd9b414a988cd76bd47eb46f7ccf701cea0c3caa28939e

See more details on using hashes here.

File details

Details for the file bttmb-3.1.0-py3-none-any.whl.

File metadata

  • Download URL: bttmb-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for bttmb-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d81e387323d4f94d8b8080dbcffabe6cf9f99b3f34231951343dc5c2e8d03f3b
MD5 c63af59859a72316020be2efec078410
BLAKE2b-256 52943fc7401afe560025f970442ba1348ad288a83ceb1c19bb3d39a323de8860

See more details on using hashes here.

Supported by

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