# Operator语言教程
Operator是一门只需要符号编辑的编程语言。
而,在Operator中只有两个变量,分别是m和n
结合以下标识符,就能完成一些操作。
`python '+' -> m+=1 '-' -> m-=1 '*' -> m*=n '/' -> m//=n '%' -> m%=n '^' -> m**=n '|' -> m=abs(m) '=' -> n=m '"' -> n=chr(m) '~' -> m,n=n,m ';' -> print(n,end='') ':' -> m=input() '[...]' -> for i in range(n):... '`...`' -> #... `
这是作者写的一串Hello World的代码 ` +++=-^+=-*"; .++=+++*=/+~^+";+++++++";; +++"; =/++~/=-----"; .+++=-^=+++*-"; .++=+++*=+*+"; =+++"; ------"; --------"; `
目前作者还在改进嵌套循环的代码,敬请期待~
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file operator-language-0.0.5.tar.gz.
File metadata
- Download URL: operator-language-0.0.5.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
003a0519b8646e0b4e7651d59a79a562b1dc23e45e981630c00970f1f5f82753
|
|
| MD5 |
9cf4ce96457076e5df12f3e3be327261
|
|
| BLAKE2b-256 |
4b25274a76afeecf19bf356b7730ec80f134c47546748e4d6bd65885dba78461
|