本项目收录了 44 种编程语言的 Hello World 程序,涵盖从机器码到现代高级语言的广泛范围。
- HelloWorld.java — Java
- Hello.kt — Kotlin
- Hello.scala — Scala
- Hello.groovy — Groovy
- hello.clj — Clojure
- hello.py — Python
- hello.js — JavaScript(Node.js)
- hello.ts — TypeScript
- hello.rb — Ruby
- hello.php — PHP
- hello.pl — Perl
- hello.lua — Lua
- hello.R — R
- hello.html — HTML
- style.css — CSS
- main.rs — Rust
- hello.go — Go
- hello.swift — Swift
- hello.dart — Dart
- Hello.hs — Haskell
- hello.erl — Erlang
- hello.exs — Elixir
- hello.fs — F#
- hello.scm — Scheme
- hello.lisp — Common Lisp
- hello.pro — Prolog
- hello.sql — SQL
- hello.bf — Brainfuck
- hello_world.m — MATLAB
- hello.jl — Julia
# Python
python3 hello.py
# Node.js
node hello.js
# C 编译运行
gcc hello.c -o hello && ./hello
# C++ 编译运行
g++ hello.cpp -o hello && ./hello
# Rust
rustc main.rs && ./main
# Go
go run hello.go此合集仅供学习参考,每种语言的代码均遵循该语言社区的标准规范。