Hello World ! 节日快乐!

节日快乐!php

世界你好,Hello Worldhtml

  • Java
public class HelloWorld{
    public static void main(String[] args) {  
        System.out.println("Hello World");  
    }
}复制代码

  • Python
# 2.0
print "Hello World"
# 3.0
print ("Hello World")复制代码
  • Shell
echo "Hello World"复制代码
  • SQL
SELECT 'Hello World' FROM DUAL;复制代码
  • HTML5
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>say sth to this world</title>    
</head>
<body>
    Hello World
</body>
</html>复制代码
  • JavaScript
function HelloWorld(){
    document.write("Hello World");
}
HelloWorld();复制代码
  • VBScript
MsgBox("Hello World!") 复制代码
  • Delphi
procedure TForm1.Button1Click(Sender:TObject);  
begin  
    label1.Caption := 'Hello World';  
end;    
procedure TForm1.FormCreate(Sender:TObject);  
begin   
end;    
end.复制代码
  • Scala
object HelloWorld  
{  
    def main(args:Array[String])   
  {  
        println("Hello World!");  
  }  
}  复制代码
  • R
print ("Hello World")复制代码
  • Ruby
print "Hello World"复制代码
  • Matlab
disp ('Hello World');复制代码
  • GO
import "fmt"
 
func main() {
    fmt.Print("Hello World")
}复制代码
  • PHP
<!DOCTYPE html>  
<body>  
<?php  
echo "Hello World";
?>  
</body>  
</html> 复制代码
  • Perl
print "Hello World"复制代码

  • Swift
print ("Hello World")复制代码
  • Kotlin
fun main(args:Array<String>){
    println("Hello World")
}复制代码
  • C
#include <stdio.h>  
int main()      # main入口函数  
{  
    printf("Hello World"); 
    return 1;               
}  复制代码
  • C++
#include<iostream>
int main(int argc, char const *argv[])
{
    std::cout<<"Hello World";
    return 0;
}复制代码

  • Windows CMD
@echo off
echo Hello World复制代码

以为有帮助的小伙伴点个赞支持一下~

相关文章
相关标签/搜索