Skip to content

Latest commit

 

History

History
76 lines (46 loc) · 951 Bytes

README.md

File metadata and controls

76 lines (46 loc) · 951 Bytes

MultiLanguageLearning

多语言学习,c、golang、java、js、lua、python、rust

第一个程序

遵照惯例,我们的第一个程序是通过标准输出打印字符串“Hello World”

python

hello.py

运行程序

python .\python\code\hello.py

golang

hello.go

运行程序

go run .\golang\code\hello.go

lua

hello.lua

运行程序

lua .\lua\code\hello.lua

js

hello.js

node .\js\code\hello.js

java

Hello.java

运行程序

# 运行命令
cd .\java\code\ && javac Hello.java && java Hello

c

hello.c

运行程序

cd .\c\code\ && gcc hello.c -o hello && .\hello

rust

hello.rs

运行程序

cd .\rust\code && rustc hello.rs && .\hello