Skip to main content

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

Project description

BurtTRAVER —— 中文编程语言库 BurtTRAVER 是一个专为中文用户设计的 Python 库,让不会英文的人也能轻松写代码! ✨功能亮点

  • 🀄 中文语法:用「针对」「在」「打印」等中文关键字写代码
  • 🎨 中文画图:封装了 turtle 库,用「苏醒乌龟」「前进」「左转」画画
  • 🎮 游戏开发:封装了 pygame 库,用「苏醒玩家」快速初始化游戏窗口
  • 🔒 自定义加密:自带一套带密钥的加密/解密算法,保护你的文字
  • 🧮 数学工具:内置阶乘、次方、开根号等常用数学函数 🚀 快速开始
  1. 安装 bash pip install burt_traver 2.初探一下! from burt_traver import 打印, 针对, 在, 重复数字 针对 i 在 重复数字(1, 6): 打印("BurtTRAVER 第", i, "次输出!")
    3.进行实践,做一个小正方形吧! from burt_traver import 苏醒乌龟 苏醒乌龟() 乌龟.前进(100) 乌龟.右转(90) 乌龟.前进(100) 乌龟.右转(90) 乌龟.前进(100) 乌龟.右转(90) 乌龟.前进(100) 4.加密你的小秘密! from burt_traver import 加密, 解密 原文 = "这是一门中文编程语言!" 密文 = 加密(原文) 打印("加密后:", 密文) 打印("解密后:", 解密(密文)) 📖 全部功能
  • 打印(内容,结尾符='\n',开始符='',间隔符=' ')
  • 重复输出(断开重复条件=1==0,内容='',限制次数=1,结尾符='\n',开始符='',间隔符=' ')
  • 阶乘(数字)
  • 次方算法(数字,次方数)
  • 开根号(次方根,数字)
  • 苏醒玩家(大小=(800,800),颜色=(0,0,0),名称='') --->import pygame,自动初始化,但是没有while True。
  • 苏醒乌龟(别名='乌龟',颜色='白'): --->import turtle as 别名 这里自动建了一个库。
  • 转换形态(函数,转换的形态)
  • 加密(字符串)
  • 解码(密码)
  • 显示功能() --->显示所有功能
  • 篱笆 = '╳'
  • 链条 = '┇'
  • 左上角 = '╭'
  • 右上角 = '╮'
  • 横线 = '━'
  • 左下角 = '╰'
  • 右下角 = '╯'
  • 竖线 = '┃'
  • 苹果图标-t = ''
  • 上 = '⬆'
  • 下 = '⬇'
  • 左 = '⬅'
  • 右 = '➡'
  • 综合(*args)
  • 重复数字(开始,结束,间隔=1)
  • 关键字库:'针对':'for','在':'in','定义函数':'def', '返回':'return','如果':'if', '否则':'else','要不然':'elif', '试一试':'try','报错':'except', '没报错':'else','无论如何':'finally' 📌 作者
  • Name:Burt
  • Age:10
  • 介绍:我是一名喜欢创造的小学生,用 347 行代码造出了 BurtTRAVER! 📄 许可证 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-2.4.5.tar.gz (10.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-2.4.5-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bttmb-2.4.5.tar.gz
Algorithm Hash digest
SHA256 e2ac6ae3f5df1e733dda58876eb643ea85c9d1720c76093a15a379d58d59e296
MD5 d50664141766a1be2094b46e323af4b2
BLAKE2b-256 dea2f5d95a23a98a213256c1d8e742ac4a48f8e5562da214b80c21f46ad58a2c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for bttmb-2.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 12c048260e3d7134c5ec1e2631ea2b6775600fd9db22dbd13a0f939c2f4b6cdb
MD5 9163f96c44d446994072e5304f959a7d
BLAKE2b-256 f12bcec8be94e6a93d60c83069b6cfc137440c007f2e005c8345f628b5f3bfc4

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