各种编程语言的 Hello World

Hello World

helloworld

Hello World!

HelloWorld.ABAP

REPORT zhelloworld
* Write hello world to screen
WRITE 'Hello World'.
* Display hello world message.
MESSAGE 'Hello World' TYPE 'I'.

HelloWorld.asm

.model small
.data
        msg db 10d,13d,"Hello World$"

.code
        mov ax,@data
        mov ds,ax
                                        
        lea dx,msg                      
        mov ah,09h                      
        int 21h                         

        mov ah,4ch                      
        int 21h                         
end

HelloWorld.au3

MsgBox(0, "Say Hi", "Hello World")

HelloWorld.bas

10 PRINT "Hello, World!"
20 END

HelloWorld.bat

@echo off
echo Hello World

HelloWorld.bf

-[------->+<]>-.-[->+++++<]>++.+++++++..+++.[--->+<]>-----.---[->+++<]>.-[--->+<]>---.+++.------.--------.

HelloWorld.c

#include<stdio.h>

int main(void)
{
  printf("Hello, world!");
  return 0;
}

HelloWorld.cl

class Main{
i : IO <- new IO;
main() :Int { { i.out_string("Hello World"); 1; } };
};

HelloWorld.cljx

(println "Hello world!")

HelloWorld.cob

IDENTIFICATION DIVISION.
PROGRAM-ID. HelloWorld.
*AUTHOR Manuel Coppotelli (manuelcoppotelli)
PROCEDURE DIVISION.
    DISPLAY "Hello World!".
STOP RUN.

HelloWorld.coffee

alert “Hello, World!”

HelloWorld.cpp

#include <iostream>
using namespace std;

int main()
{
    cout <<"\nHello World"<< endl;
    return 0;
}

HelloWorld.cr

class Greeter
  def initialize(@name : String )
  end

  def salute
    puts "Hello #{@name}!"
  end
end

g = Greeter.new("world")
g.salute

HelloWorld.cs

using System;

namespace helloWorld
{
    class HelloWorld
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
        }
    }
}

HelloWorld.d

import std.stdio;

void main()
{
    writeln("Hello World");
}

HelloWorld.dart

void main() {
    print('hello world');
}

HelloWorld.delphi

procedure TForm1.ShowAMessage;
begin
  ShowMessage('Hello World!');
end;

helloworld.emojic

🐇 🐼 🍇
  🐇🐖 🏁 ➡️ 🚂 🍇
    😀 🔤Hello world!🔤
    🍎 0
  🍉
🍉

HelloWorld.erl

% hello world program
-module(helloworld). 
-export([start/0]). 

start() -> 
   io:fwrite("Hello, world!\n").

HelloWorld.exs

# elixir HelloWorld.exs

IO.puts "Hello World!"

HelloWorld.go

package main

import (
	"fmt"
)

func main() {
	fmt.Println("Hello World")
}

HelloWorld.groovy

class HelloWorld {
   static void main(String[] args) {
      println('Hello World');
   }
}

HelloWorld.hs

main = putStrLn "Hello, World!"

HelloWorld.html

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Hello World!</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
    <h1>Hello World!</h1>
</body>
</html>

HelloWorld.i

DO ,1 <- #13
PLEASE DO ,1 SUB #1 <- #238
DO ,1 SUB #2 <- #108
DO ,1 SUB #3 <- #112
DO ,1 SUB #4 <- #0
DO ,1 SUB #5 <- #64
DO ,1 SUB #6 <- #194
DO ,1 SUB #7 <- #48
PLEASE DO ,1 SUB #8 <- #22
DO ,1 SUB #9 <- #248
DO ,1 SUB #10 <- #168
DO ,1 SUB #11 <- #24
DO ,1 SUB #12 <- #16
DO ,1 SUB #13 <- #162
PLEASE READ OUT ,1
PLEASE GIVE UP

HelloWorld.java

class HelloWorld
{
  public static void main(String[] args)
  {
    System.out.println("Hello World!!");
  }
}

HelloWorld.jl

println("hello world")

HelloWorld.jrl

function main() = {
    printLine("Hello World");
}

HelloWorld.js

console.log("Hello World");

HelloWorld.kt

fun main(args : Array<String>) {
    println("Hello, World!")
}

HelloWorld.lisp

(print "Hello World!")

HelloWorld.lua

print("Hello World")

HelloWorld.ml

print_string "Hello world";;

HelloWorld.nim

echo "Hello World"

HelloWorld.p6

say 'Hello World!';

HelloWorld.pas

//FPC 2.6.2

program Helloworld;
begin
writeln('hello,world!');
end.

HelloWorld.php

<?php
  // In PHP, we use echo to print text
  echo "Hello World";
  // If you want to print in browser's console, we use print_r
  print_r("Hello World");
  // if you want the variable data types as well use var_dump
  $stringVar = 'hello world';
  var_dump($stringVar);
?>

HelloWorld.pl

#!/usr/bin/perl
print "Hello World";

HelloWorld.pro

message('Hello World!')

HelloWorld.ps

(Hello world!\n) print quit

HelloWorld.ps1

Write-Host 'Hello, World'

HelloWorld.py

print('Hello World')

HelloWorld.r

variable <- "Hello World"
print (variable)

HelloWorld.rb

puts 'Hello World'

HelloWorld.rs

fn main(){
  println!("Hello World!")
}

HelloWorld.scala

object HelloWorld extends App {
   println("Hello, World!")
 }

HelloWorld.sh

echo "Hello World"

HelloWorld.sml

print "Hello world!\n";

HelloWorld.sol

pragma solidity ^0.4.22;
contract helloWorld {
 function renderHelloWorld () public pure returns (string) {
   return 'helloWorld';
 }
}

HelloWorld.spl

The Infamous Hello World Program.

Romeo, a young man with a remarkable patience.
Juliet, a likewise young woman of remarkable grace.
Ophelia, a remarkable woman much in dispute with Hamlet.
Hamlet, the flatterer of Andersen Insulting A/S.


                    Act I: Hamlet's insults and flattery.

                    Scene I: The insulting of Romeo.

[Enter Hamlet and Romeo]

Hamlet:
 You lying stupid fatherless big smelly half-witted coward!
 You are as stupid as the difference between a handsome rich brave
 hero and thyself! Speak your mind!

 You are as brave as the sum of your fat little stuffed misused dusty
 old rotten codpiece and a beautiful fair warm peaceful sunny summer's
 day. You are as healthy as the difference between the sum of the
 sweetest reddest rose and my father and yourself! Speak your mind!

 You are as cowardly as the sum of yourself and the difference
 between a big mighty proud kingdom and a horse. Speak your mind.

 Speak your mind!

[Exit Romeo]

                    Scene II: The praising of Juliet.

[Enter Juliet]

Hamlet:
 Thou art as sweet as the sum of the sum of Romeo and his horse and his
 black cat! Speak thy mind!

[Exit Juliet]

                    Scene III: The praising of Ophelia.

[Enter Ophelia]

Hamlet:
 Thou art as lovely as the product of a large rural town and my amazing
 bottomless embroidered purse. Speak thy mind!

 Thou art as loving as the product of the bluest clearest sweetest sky
 and the sum of a squirrel and a white horse. Thou art as beautiful as
 the difference between Juliet and thyself. Speak thy mind!

[Exeunt Ophelia and Hamlet]


                    Act II: Behind Hamlet's back.

                    Scene I: Romeo and Juliet's conversation.

[Enter Romeo and Juliet]

Romeo:
 Speak your mind. You are as worried as the sum of yourself and the
 difference between my small smooth hamster and my nose. Speak your
 mind!

Juliet:
 Speak YOUR mind! You are as bad as Hamlet! You are as small as the
 difference between the square of the difference between my little pony
 and your big hairy hound and the cube of your sorry little
 codpiece. Speak your mind!

[Exit Romeo]

                    Scene II: Juliet and Ophelia's conversation.

[Enter Ophelia]

Juliet:
 Thou art as good as the quotient between Romeo and the sum of a small
 furry animal and a leech. Speak your mind!

Ophelia:
 Thou art as disgusting as the quotient between Romeo and twice the
 difference between a mistletoe and an oozing infected blister! Speak
 your mind!

[Exeunt]


HelloWorld.sql

SELECT 'Hello World';
PRINT 'Hello World';

HelloWorld.swift

print("Hello World!")

HelloWorld.tcl

puts "Hello World!"

HelloWorld.ts

console.log("Hello World!");

HelloWorld.vb

Module HelloWorld
   Sub Main( )
      System.Console.WriteLine("Hello world!")
   End Sub
End Module

HelloWorld.ws

   	      	 
   			 		   		  	 
    
		    	  	   
	
     		  	 	
	
     		 		  
 
 	
  	
     		 				
	
     	     
	
     	 	 			
	
     		 				
	
     			  	 
	
     		 		  
	
     		  	  
	
     	    	
	
     	 	 
	
   




HelloWorld(F#).f

//F# Compiler for F# 4.1

open System
printfn "Hello, World!"

HelloWorld(Fortran).f

PRINT *, "Hello World!"
END

HelloWorld(Objective-C).m

#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        NSLog(@"Hello World!");
    }
    return 0;
}

HelloWorld1.cl

class Main{
    main() :Object { (new IO).out_string("Hello World") };
};

HellowWorld(MATLAB).m

fprintf ( 1, 'Hello, world!' );

quit

"sgmediation.zip" 是一个包含 UCLA(加利福尼亚大学洛杉矶分校)开发的 sgmediation 插件的压缩包。该插件专为统计分析软件 Stata 设计,用于进行中介效应分析。在社会科学、心理学、市场营销等领域,中介效应分析是一种关键的统计方法,它帮助研究人员探究变量之间的因果关系,尤其是中间变量如何影响因变量与自变量之间的关系。Stata 是一款广泛使用的统计分析软件,具备众多命令和用户编写的程序来拓展其功能,sgmediation 插件便是其中之一。它能让用户在 Stata 中轻松开展中介效应分析,无需编写复杂代码。 下载并解压 "sgmediation.zip" 后,需将解压得到的 "sgmediation" 文件移至 Stata 的 ado 目录结构中。ado(ado 目录并非“adolescent data organization”缩写,而是 Stata 的自定义命令存放目录)目录是 Stata 存放自定义命令的地方,应将文件放置于 "ado\base\s" 子目录下。这样,Stata 启动时会自动加载该目录下的所有 ado 文件,使 "sgmediation" 命令在 Stata 命令行中可用。 使用 sgmediation 插件的步骤如下:1. 安装插件:将解压后的 "sgmediation" 文件放入 Stata 的 ado 目录。如果 Stata 安装路径是 C:\Program Files\Stata\ado\base,则需将文件复制到 C:\Program Files\Stata\ado\base\s。2. 启动 Stata:打开 Stata,确保软件已更新至最新版本,以便识别新添加的 ado 文件。3. 加载插件:启动 Stata 后,在命令行输入 ado update sgmediation,以确保插件已加载并更新至最新版本。4
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值