!真正可用的中文

From Esolang
Jump to navigation Jump to search

!真正可用的中文 is esolang by User:Yoyolin0409. It like !中文 but has a true grammar and supports Traditional Chinese.

Rickrolling
Designed by User:Yoyolin0409
Appeared in 2025
Computational class Unknown
Reference implementation Unimplemented
Influenced by !中文
File extension(s) .中文

Instructions

All programs must end with a period (。). A newline can be replaced with a comma (,)

Instruction Function display of using pseudocode
输出<var1>/輸出<var1> print(var1)
{读/输/写}入<num>个<type>/{讀/輸/寫}入<num>個<type> if num >1:它們=(input(Type: type1,type2,type3,....typex(The type must be <type>)))
elif num=1:它=(input(Type: (The type must be <type>))) <num> display:一(1)、二(2)、三(3)、四(4)、五(5)、六(6)、七(7)、八(8)、九(9)、十(10)、十一(11)、二十(20)、一百(100)、一百零一(101)、一千(1000)、一萬(10000)、十萬(100000)、百萬(1000000)、千萬(10000000)、一億(100000000)、一兆、一京... Available <type>:數字/数字(num), 整數/整数(int), 小數/小数/浮點數/浮点数(float), 文字/文本/字/詞/词/字詞/字词/字串(str), 是非/是否/布林值/開關/开关(bool)
{输出/輸出}{<var1>和<var2>/<var1>,<var2>...<varx-1>和<varx>/<list1>}的{和/差/{積/积}/商/{餘/余}} print(var1{+/-/*///%}var2/var1{+/-/*///%}var2....{+/-/*///%}varx-1{+/-/*///%}varx/{+/-/*///%} of all items in list1)
以{“/「/『}<str>{”/」/』}作为提示输入<var1>/以{“/「/『}<str>{”/」/』}作為提示輸入<var1> var1=input(str)
将<var1>初始化为<var2>/將<var1>初始化為<var2> var1=var2
清空屏幕/清空屏幕 That's strange. I don't recall any language having this feature. Just think of it as the "delete content" function in the Python interpreter's test area.
重复执行以下代码直至<var1><Judgment><num>:/重複執行以下代碼只到<var1><Judgment><num>: while var1 Judgment num: Available Judgment:不(not), 等於/等于(=), 大於/大于(>), 小於/小于(<), 和/與/与/且/並且/并且/並/并(and), 或/或者(or)
() The tab "(" is used after a newline following if, while, elif, else, for, or similar statements, while ")" is used after the end of a newline interval. For example: "重複執行以下代碼只到...:,(...)"
%<thing>将被<var1>替代/%<thing>將被<var1>替代 Similar to Python's f-strings, when appended to the content of a declarative text, %<thing> must be inserted into the text.
将<var1>加上/减去/{乘上/乘以}/除以/求余<num>/將<var1>加上/減去/{乘上/乘以}/除以/求餘<num> var1{+/-/*///%}num
从{《混沌》/混沌}库中导入所有{定义和声明/函式}/從{《混沌》/混沌}庫中導入所有{定義與聲明/函式} import random
定义一个列表<list> ,它将用来存储一些东西/定義一個列表<list>,它將被用來儲存一些東西 list = []
重复执行以下代码<num>次:/重複執行以下程式<num>次 for i in <num>:
在<list>的末尾加入<value>/在<list>的最後加入<value> list.append(<value>)
一个从<num1>到<num2>的随机数/一個從<num1>到<num2>的隨機數 random.randint(num1,num2)

See Also