Skip to main content

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

Project description

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

⚽️ 「核心定位」

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

🧱 「版本信息」

当前版本:v3.1.5

🀄️ 「已完成汉化模块」

  • 内置函数
  • 高级运算函数
  • 拓展函数
  • 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-- import bttmb as w w.运行代码(''' import bttmb as w w.苏醒玩家(窗口大小=(1200,800),别名="j") w.苏醒随机('r') 游戏=1 x=w.r.随机数(100,1100) y=w.r.随机数(100,700) 当 游戏: 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) 游戏=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) w.j.退出()''')

✍️ 「作者与相关信息」

  • 作者: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 ➡ 3.5.6 ➡ 3.7.0 ➡ 3.7.5 ➡ 3.7.6 ➡ 3.7.9 ➡ 3.9.0 ➡ 4.0.0 ➡ 4.4.5 ➡ 4.4.9 ➡ 4.5.0 ➡ 4.7.0 ➡ 5.0.0 ➡ 5.0.1 ➡ 5.1.0 ➡ 5.1.5 ➡ 5.1.7 ➡ 5.2.0 ➡ 5.2.2 ➡ 5.3.0 ➡ 5.5.0 ➡ 5.5.5 ➡ 5.5.6 ➡ 5.7.0 ➡ 5.7.5 ➡ 5.7.6 ➡ 5.7.9 ➡ 5.9.0 ➡ 6.0.0 ➡ 6.2.0...
  • 仓库地址:仅发布在 PyPI,暂不入驻 GitHub 「喵!中国10岁男孩在GitHub失踪了…因为他没有账号!」 📄 「许可证」

许可证

本项目基于 MIT License 开源。

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.5.tar.gz (19.2 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.5-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bttmb-3.1.5.tar.gz
  • Upload date:
  • Size: 19.2 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.5.tar.gz
Algorithm Hash digest
SHA256 d382829e9c6c6f781986e32acd221b8676576690006c6ee6cf016b1e833e3de1
MD5 577785403d93e5842c0b3a557521cac7
BLAKE2b-256 6b0fdf3d4184be8e447fc921bd483a142e67be31d8f2c12996e57841c9cc08a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bttmb-3.1.5-py3-none-any.whl
  • Upload date:
  • Size: 19.9 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 30182aa9215253c0b3b59b14a4cde5549eb015d3f6d5618afdefd3d7305c4561
MD5 fa93db5ea4a2a131f2fea6a3862a706a
BLAKE2b-256 edfbd764e6a7a1a51d8ea07bdddb5e275f4c42e88e01c6ce4bbc38d77e3d0acc

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