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.0.0.tar.gz (3.0 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.0.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bttmb-2.0.0.tar.gz
Algorithm Hash digest
SHA256 6172b4fd6ac92f210d4aca7b86bfeec156cf5fabba57e4a4190ebcdf5b3adccf
MD5 ff296c0e2e97bfc399f948877bf65981
BLAKE2b-256 17e13d5a4b37bbd72f7a4567e4be8ae5649055d1c81debcec7e14b0ef3bb8ced

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bttmb-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.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-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4754466e13aa1839d5bf4c8039be8c67fde179825b7f77e26028a3c0209a77bb
MD5 410583f973c9aea5aa7357b863b6ccbe
BLAKE2b-256 e4d3a196c8146ddbc1585d1b42e3117d65a877b699d7bdf31a9c3077541a5a49

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