多种语言输出Hello World

Author Avatar
w-xuefeng 6月 27, 2017
  • 在其它设备中阅读本文章

C

printf("Hello World");

C++

cout<<"Hello World";

QBasic

Print "Hello World"

ASP

Response.Write "Hello World"

PHP

echo "Hello World";

JavaScript

alert("Hello World");
document.write("Hello World");

VBScript

MsgBox "Hello World"

Delphi

ShowMessage('Hello World!');

VB

Print "Hello World!"
MessageBox("Hello World!");

Shell

echo Hello World

Perl

print 'Hello World'

Java

System.out.println("Hello World");

PowerBuilder:

messagebox("Hello World")

C#

System.Console.WriteLine("Hello World")

COBOL

DISPLAY 'Hello World'

Python

print("Hello World")

AS

Alert.show("Hello World");

Foxpro

? [Hello World]

DOS 批处理

echo Hello World

易语言

调试输出("Hello World")

Golang

fmt.Println("Hello World")

Matlab

disp('Hello,World!'');

Ruby

 puts "hello wold!"

本博客遵循署名 4.0 协议国际版 (CC BY 4.0)协议
本文链接:https://xuefeng.is-a.dev/archives/hello-world

(●'◡'●)
如果你觉得不错或者对你有帮助, 你可以替我买一杯咖啡 ☕
If you think it's good or helpful,   you can buy me a cup of coffee ☕
buy me a coffce via ailpay Ailpay
buy me a coffce via wechat Wechat