Initial commit: Hello World 多语言示例
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# Hello World
|
||||
|
||||
一个经典的 Hello World 项目,展示多种编程语言的入门示例。
|
||||
|
||||
## 包含的语言
|
||||
|
||||
- Python
|
||||
- JavaScript
|
||||
- Go
|
||||
- Bash
|
||||
|
||||
## 运行方式
|
||||
|
||||
```bash
|
||||
python3 hello.py
|
||||
node hello.js
|
||||
go run hello.go
|
||||
bash hello.sh
|
||||
```
|
||||
@@ -0,0 +1,8 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
fmt.Println("Hello, World! 🌍")
|
||||
fmt.Println("Welcome to AI Code Factory!")
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
// Hello World in JavaScript
|
||||
console.log("Hello, World! 🌍");
|
||||
console.log("Welcome to AI Code Factory!");
|
||||
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Hello World in Python"""
|
||||
|
||||
def main():
|
||||
print("Hello, World! 🌍")
|
||||
print("Welcome to AI Code Factory!")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user