preview/multi.csv · 1105 字节 · 下载原文
语言,后缀,示例文件,一句话说明,示例代码,备注
C,.c,hello.c,最简单的例子,printf("hello\n");,
C++,.cpp,hello.cpp,带类与 STL,std::cout << "hi";,
Python,.py,hello.py,缩进敏感,print("hi"),
Rust,.rs,hello.rs,所有权与借用,fn main() {},
Go,.go,hello.go,goroutine,"go f()",
Java,.java,Hello.java,类名必须与文件同名,class Hello {},
Kotlin,.kt,hello.kt,与 Java 互操作,fun main() {},
Swift,.swift,hello.swift,可选值,print("hi"),
Dart,.dart,hello.dart,Flutter 的语言,void main() {},
Ruby,.rb,hello.rb,一切皆对象,puts "hi",
Lua,.lua,hello.lua,嵌入脚本,print("hi"),
BASIC,.bas,hello.bas,行号时代的语言,PRINT "HI" ,"引号里可以有, 逗号"
Pascal,.pas,hello.pas,begin/end,WriteLn('hi');,
Forth,.fth,hello.fth,后缀表达式,." hi",
Scheme,.scm,hello.scm,括号很多,(display "hi"),
"这是一格很长的文本,用来验证表格会横向滚动而不是把行硬折成好几段——手机上表格宽了应该能左右滑,折行会让列对不齐。",.txt,note.txt,长单元格,,
最后一行故意只有三列,数据不齐不算格式错