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

burttraver-0.2.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

burttraver-0.2.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file burttraver-0.2.0.tar.gz.

File metadata

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

File hashes

Hashes for burttraver-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2dcfbe99dbbf68f34d531ddd036aaa66bad13a77fc38cefe26f0acb4e2fe3219
MD5 3b1ba376a9d038f423235cc697196b0f
BLAKE2b-256 0dcf8cbcac0e14dbfed4a5faa9272c7b824b3f9f3a29c94433d6d54558c6e926

See more details on using hashes here.

File details

Details for the file burttraver-0.2.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for burttraver-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 18572b36fa9841edcc288cdb2fc02aebabc50754477af8c98c5309f472b954ad
MD5 c3171abe26b6dac868e4be01ef5667a0
BLAKE2b-256 041ebebe7a79fccb6e1b2fe23371b9788ef34b54298c2714144dea2555cfa36f

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