A beginner-friendly programming language built on Python
Project description
Gentoricass Programming Language | Gentoricass编程语言
Built by: Dickily
Version: 1.5 (Improved!)
Gentoricass is a beginner-friendly programming language based on Python.
Its intuitive commands simplify coding while retaining Python's power.
Gentoricass是一种基于Python的初学者友好型编程语言。
它的直观命令简化了编程,同时保留了Python的强大功能。
Features | 特点:
- Interactive Input | 交互式输入 (
gin) - Flexible Output | 灵活的输出 (
gout) - Logical Conditions | 条件控制 (
gif_true_false,gif_in) - Loops with Shared Variables | 支持共享变量的循环 (
grepeat,gloop) - Break & Skip in Loops | 循环中的Break和Skip (
gstop,gskip) - Random Utilities | 随机数支持 (
gran_int,gran_choice) - Custom Function Creation | 自定义函数创建 (
gset,grun) - Built-In Documentation | 内置文档支持 (
help(gentoricass))
Usage | 用法:
Call help(gentoricass) to see a list of functions and their explanations.
调用help(gentoricass)可以查看函数列表及其解释。
Version 1.5 Improvements | 版本1.5改进:
-
Break & Skip Commands in Conditions:
Loops (grepeat,gloop) now detectgstopandgskipcommands withingif_true_false()logic for dynamic flow control. -
Enhanced Loop Handling:
Optimized loop execution with better variable sharing and dynamic error handling. -
Added Random Utilities:
Introducedgran_int()for random integers andgran_choice()for selecting random items. -
Improved User Experience:
Simplified syntax and increased clarity in dynamic function creation (gset,grun).
Explore Gentoricass and unleash your creativity! 🚀
'''
import time # Import the time module for delays | 导入time模块用于延时 import math# Import the math module for mathematical functions | 导入math模块用于数学功能 from math import *# Import all math attributes | 导入math模块的所有属性 import asyncio # Import asyncio for asynchronous tasks | 导入asyncio模块用于异步任务 import random
Function 1: gin()
def gin(word): ''' Interactive Input | 交互式输入
gin() prompts the user for input, with support for multi-line prompts using (nextline).
gin() 提示用户输入,并支持使用(nextline)进行多行提示。
Arguments | 参数:
- word (str): The prompt message. Use "(nextline)" to add line breaks.
提示信息,使用
(nextline)添加换行。
Returns | 返回:
- str: User input | 用户输入。
Example | 示例: name = gin("What is your name?(nextline)") gout("Hello,", name)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gentoricass-1.5.tar.gz.
File metadata
- Download URL: gentoricass-1.5.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
312d19264d9537a0f8c87c5f5e35636bb211adac99c8e8372d638d6a8eccb8c1
|
|
| MD5 |
00e9e4195cb1ffd92bc9af2a6c0f4f39
|
|
| BLAKE2b-256 |
c3bc39aa0a4c9545bb2dfabe6373a0550aeb804aff5b94255697e5b5d64a14ec
|
File details
Details for the file gentoricass-1.5-py3-none-any.whl.
File metadata
- Download URL: gentoricass-1.5-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56b95ec3fa220be7f3c3e752b9513f438ca879752ad9df2bf5c53cf8d51aadd6
|
|
| MD5 |
f5dcd656db50333f6197bee4f554088c
|
|
| BLAKE2b-256 |
47b9ebdb3e163c2b153400f8acb08567940b69af2fb62f672b0216627239ef68
|