• 42种编程语言写hello world .


    ada.ada

    1. with Text_IO;  
    2. procedure Hello_World is  
    3.     begin  
    4.         Text_IO.Put_line("Hello World!");  
    5.     end Hello_World;  

    apc.apc

    1. probe program  
    2. {  
    3. on_entry log ("Hello, World!/n");  
    4. }  

    applescript.scpt

    1. display dialog "Hello World"  

    awk.awk

    1. # awk -f awk.awk   
    2. BEGIN { print "Hello World" }  

    befunge.be

    1. >"dlroW olleH",,,,,,,,,,,@  

    BIT.bit

    1. LINENUMBERZEROCODEPRINTZEROGOTOONELINENUMBERONECODEPRINTONEGOTOONEZEROLINENUMBE  
    2. RONEZEROCODEPRINTZEROGOTOONEONELINENUMBERONEONECODEPRINTZEROGOTOONEZEROZEROLINE  
    3. NUMBERONEZEROZEROCODEPRINTONEGOTOONEZEROONELINENUMBERONEZEROONECODEPRINTZEROGOT  
    4. OONEONEZEROLINENUMBERONEONEZEROCODEPRINTZEROGOTOONEONEONELINENUMBERONEONEONECOD  
    5. EPRINTZEROGOTOONEZEROZEROZEROLINENUMBERONEZEROZEROZEROCODEPRINTZEROGOTOONEZEROZ  
    6. EROONELINENUMBERONEZEROZEROONECODEPRINTONEGOTOONEZEROONEZEROLINENUMBERONEZEROON  
    7. EZEROCODEPRINTONEGOTOONEZEROONEONELINENUMBERONEZEROONEONECODEPRINTZEROGOTOONEON  
    8. EZEROZEROLINENUMBERONEONEZEROZEROCODEPRINTZEROGOTOONEONEZEROONELINENUMBERONEONE  
    9. ZEROONECODEPRINTONEGOTOONEONEONEZEROLINENUMBERONEONEONEZEROCODEPRINTZEROGOTOONE  
    10. ONEONEONELINENUMBERONEONEONEONECODEPRINTONEGOTOONEZEROZEROZEROZEROLINENUMBERONE  
    11. ZEROZEROZEROZEROCODEPRINTZEROGOTOONEZEROZEROZEROONELINENUMBERONEZEROZEROZEROONE  
    12. CODEPRINTONEGOTOONEZEROZEROONEZEROLINENUMBERONEZEROZEROONEZEROCODEPRINTONEGOTOO  
    13. NEZEROZEROONEONELINENUMBERONEZEROZEROONEONECODEPRINTZEROGOTOONEZEROONEZEROZEROL  
    14. INENUMBERONEZEROONEZEROZEROCODEPRINTONEGOTOONEZEROONEZEROONELINENUMBERONEZEROON  
    15. EZEROONECODEPRINTONEGOTOONEZEROONEONEZEROLINENUMBERONEZEROONEONEZEROCODEPRINTZE  
    16. ROGOTOONEZEROONEONEONELINENUMBERONEZEROONEONEONECODEPRINTZEROGOTOONEONEZEROZERO  
    17. ZEROLINENUMBERONEONEZEROZEROZEROCODEPRINTZEROGOTOONEONEZEROZEROONELINENUMBERONE  
    18. ONEZEROZEROONECODEPRINTONEGOTOONEONEZEROONEZEROLINENUMBERONEONEZEROONEZEROCODEP  
    19. RINTONEGOTOONEONEZEROONEONELINENUMBERONEONEZEROONEONECODEPRINTZEROGOTOONEONEONE  
    20. ZEROZEROLINENUMBERONEONEONEZEROZEROCODEPRINTONEGOTOONEONEONEZEROONELINENUMBERON  
    21. EONEONEZEROONECODEPRINTONEGOTOONEONEONEONEZEROLINENUMBERONEONEONEONEZEROCODEPRI  
    22. NTZEROGOTOONEONEONEONEONELINENUMBERONEONEONEONEONECODEPRINTZEROGOTOONEZEROZEROZ  
    23. EROZEROZEROLINENUMBERONEZEROZEROZEROZEROZEROCODEPRINTZEROGOTOONEZEROZEROZEROZER  
    24. OONELINENUMBERONEZEROZEROZEROZEROONECODEPRINTONEGOTOONEZEROZEROZEROONEZEROLINEN  
    25. UMBERONEZEROZEROZEROONEZEROCODEPRINTONEGOTOONEZEROZEROZEROONEONELINENUMBERONEZE  
    26. ROZEROZEROONEONECODEPRINTZEROGOTOONEZEROZEROONEZEROZEROLINENUMBERONEZEROZEROONE  
    27. ZEROZEROCODEPRINTONEGOTOONEZEROZEROONEZEROONELINENUMBERONEZEROZEROONEZEROONECOD  
    28. EPRINTONEGOTOONEZEROZEROONEONEZEROLINENUMBERONEZEROZEROONEONEZEROCODEPRINTONEGO  
    29. TOONEZEROZEROONEONEONELINENUMBERONEZEROZEROONEONEONECODEPRINTONEGOTOONEZEROONEZ  
    30. EROZEROZEROLINENUMBERONEZEROONEZEROZEROZEROCODEPRINTZEROGOTOONEZEROONEZEROZEROO  
    31. NELINENUMBERONEZEROONEZEROZEROONECODEPRINTZEROGOTOONEZEROONEZEROONEZEROLINENUMB  
    32. ERONEZEROONEZEROONEZEROCODEPRINTONEGOTOONEZEROONEZEROONEONELINENUMBERONEZEROONE  
    33. ZEROONEONECODEPRINTZEROGOTOONEZEROONEONEZEROZEROLINENUMBERONEZEROONEONEZEROZERO  
    34. CODEPRINTZEROGOTOONEZEROONEONEZEROONELINENUMBERONEZEROONEONEZEROONECODEPRINTZER  
    35. OGOTOONEZEROONEONEONEZEROLINENUMBERONEZEROONEONEONEZEROCODEPRINTZEROGOTOONEZERO  
    36. ONEONEONEONELINENUMBERONEZEROONEONEONEONECODEPRINTZEROGOTOONEONEZEROZEROZEROZER  
    37. OLINENUMBERONEONEZEROZEROZEROZEROCODEPRINTZEROGOTOONEONEZEROZEROZEROONELINENUMB  
    38. ERONEONEZEROZEROZEROONECODEPRINTONEGOTOONEONEZEROZEROONEZEROLINENUMBERONEONEZER  
    39. OZEROONEZEROCODEPRINTONEGOTOONEONEZEROZEROONEONELINENUMBERONEONEZEROZEROONEONEC  
    40. ODEPRINTONEGOTOONEONEZEROONEZEROZEROLINENUMBERONEONEZEROONEZEROZEROCODEPRINTZER  
    41. OGOTOONEONEZEROONEZEROONELINENUMBERONEONEZEROONEZEROONECODEPRINTONEGOTOONEONEZE  
    42. ROONEONEZEROLINENUMBERONEONEZEROONEONEZEROCODEPRINTONEGOTOONEONEZEROONEONEONELI  
    43. NENUMBERONEONEZEROONEONEONECODEPRINTONEGOTOONEONEONEZEROZEROZEROLINENUMBERONEON  
    44. EONEZEROZEROZEROCODEPRINTZEROGOTOONEONEONEZEROZEROONELINENUMBERONEONEONEZEROZER  
    45. OONECODEPRINTONEGOTOONEONEONEZEROONEZEROLINENUMBERONEONEONEZEROONEZEROCODEPRINT  
    46. ONEGOTOONEONEONEZEROONEONELINENUMBERONEONEONEZEROONEONECODEPRINTZEROGOTOONEONEO  
    47. NEONEZEROZEROLINENUMBERONEONEONEONEZEROZEROCODEPRINTONEGOTOONEONEONEONEZEROONEL  
    48. INENUMBERONEONEONEONEZEROONECODEPRINTONEGOTOONEONEONEONEONEZEROLINENUMBERONEONE  
    49. ONEONEONEZEROCODEPRINTONEGOTOONEONEONEONEONEONELINENUMBERONEONEONEONEONEONECODE  
    50. PRINTONEGOTOONEZEROZEROZEROZEROZEROZEROLINENUMBERONEZEROZEROZEROZEROZEROZEROCOD  
    51. EPRINTZEROGOTOONEZEROZEROZEROZEROZEROONELINENUMBERONEZEROZEROZEROZEROZEROONECOD  
    52. EPRINTONEGOTOONEZEROZEROZEROZEROONEZEROLINENUMBERONEZEROZEROZEROZEROONEZEROCODE  
    53. PRINTONEGOTOONEZEROZEROZEROZEROONEONELINENUMBERONEZEROZEROZEROZEROONEONECODEPRI  
    54. NTONEGOTOONEZEROZEROZEROONEZEROZEROLINENUMBERONEZEROZEROZEROONEZEROZEROCODEPRIN  
    55. TZEROGOTOONEZEROZEROZEROONEZEROONELINENUMBERONEZEROZEROZEROONEZEROONECODEPRINTZ  
    56. EROGOTOONEZEROZEROZEROONEONEZEROLINENUMBERONEZEROZEROZEROONEONEZEROCODEPRINTONE  
    57. GOTOONEZEROZEROZEROONEONEONELINENUMBERONEZEROZEROZEROONEONEONECODEPRINTZEROGOTO  
    58. ONEZEROZEROONEZEROZEROZEROLINENUMBERONEZEROZEROONEZEROZEROZEROCODEPRINTZEROGOTO  
    59. ONEZEROZEROONEZEROZEROONELINENUMBERONEZEROZEROONEZEROZEROONECODEPRINTONEGOTOONE  
    60. ZEROZEROONEZEROONEZEROLINENUMBERONEZEROZEROONEZEROONEZEROCODEPRINTONEGOTOONEZER  
    61. OZEROONEZEROONEONELINENUMBERONEZEROZEROONEZEROONEONECODEPRINTZEROGOTOONEZEROZER  
    62. OONEONEZEROZEROLINENUMBERONEZEROZEROONEONEZEROZEROCODEPRINTONEGOTOONEZEROZEROON  
    63. EONEZEROONELINENUMBERONEZEROZEROONEONEZEROONECODEPRINTONEGOTOONEZEROZEROONEONEO  
    64. NEZEROLINENUMBERONEZEROZEROONEONEONEZEROCODEPRINTZEROGOTOONEZEROZEROONEONEONEON  
    65. ELINENUMBERONEZEROZEROONEONEONEONECODEPRINTZEROGOTOONEZEROONEZEROZEROZEROZEROLI  
    66. NENUMBERONEZEROONEZEROZEROZEROZEROCODEPRINTZEROGOTOONEZEROONEZEROZEROZEROONELIN  
    67. ENUMBERONEZEROONEZEROZEROZEROONECODEPRINTONEGOTOONEZEROONEZEROZEROONEZEROLINENU  
    68. MBERONEZEROONEZEROZEROONEZEROCODEPRINTONEGOTOONEZEROONEZEROZEROONEONELINENUMBER  
    69. ONEZEROONEZEROZEROONEONECODEPRINTZEROGOTOONEZEROONEZEROONEZEROZEROLINENUMBERONE  
    70. ZEROONEZEROONEZEROZEROCODEPRINTZEROGOTOONEZEROONEZEROONEZEROONELINENUMBERONEZER  
    71. OONEZEROONEZEROONECODEPRINTONEGOTOONEZEROONEZEROONEONEZEROLINENUMBERONEZEROONEZ  
    72. EROONEONEZEROCODEPRINTZEROGOTOONEZEROONEZEROONEONEONELINENUMBERONEZEROONEZEROON  
    73. EONEONECODEPRINTZEROGOTOONEZEROONEONEZEROZEROZEROLINENUMBERONEZEROONEONEZEROZER  
    74. OZEROCODEPRINTZEROGOTOONEZEROONEONEZEROZEROONELINENUMBERONEZEROONEONEZEROZEROON  
    75. ECODEPRINTZEROGOTOONEZEROONEONEZEROONEZEROLINENUMBERONEZEROONEONEZEROONEZEROCOD  
    76. EPRINTONEGOTOONEZEROONEONEZEROONEONELINENUMBERONEZEROONEONEZEROONEONECODEPRINTZ  
    77. EROGOTOONEZEROONEONEONEZEROZEROLINENUMBERONEZEROONEONEONEZEROZEROCODEPRINTZEROG  
    78. OTOONEZEROONEONEONEZEROONELINENUMBERONEZEROONEONEONEZEROONECODEPRINTZEROGOTOONE  
    79. ZEROONEONEONEONEZEROLINENUMBERONEZEROONEONEONEONEZEROCODEPRINTZEROGOTOONEZEROON  
    80. EONEONEONEONELINENUMBERONEZEROONEONEONEONEONECODEPRINTONE  

    boo.boo

    1. print "Hello World"  

    brainf*ck.bf

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

    c.c

    1. #include<stdio.h>   
    2. int main(void) {  
    3. printf("Hello World/n");  
    4. return 0;  
    5. }  

    c++.cpp

    1. #include<iostream>   
    2. using namespace std;  
    3. int main(){  
    4. cout << "Hello World" << endl;  
    5. }  

    clipper.prg

    1. 'Hello World'  

    clisp.lisp

    1. (write-line "Hello World")  

    coldfusion.cfm

    1. <cfset message = "Hello World">  
    2. <cfoutput> #message#</cfoutput>  

    csharp.cs

    1. class HelloWorld {  
    2. static void Main() {  
    3. System.Console.WriteLine("Hello World");  
    4. }  
    5. }  

    d.D

    1. // Hello World in D   
    2. import std.stdio;  
    3. void main()  
    4. {  
    5. writefln("Hello World!");  
    6. }  

    delphi.delphi

    1. // Hello World in Delphi   
    2. Program Hello_World;  
    3. ($APPTYPE CONSOLE)  
    4. Begin  
    5.   WriteLn('Hello World');  
    6. End.  

    delphi.pas

    1. program HelloWorld;  
    2. {$APPTYPE CONSOLE}  
    3. begin  
    4. WriteLn('Hello World');  
    5. end.  

    dos.bat

    1. echo Hello World!  

    dylan.dl

    1. define method main (#rest args)  
    2.   princ("Hello world!");  
    3. end;  
    4. main();  

    Eiffel.eiff

    1. indexing "Hello World in Eiffel , from http://roesler-ac.de/wolfram/hello.htm#Eiffel"  
    2. class HELLO  
    3. creation  
    4. run  
    5. feature  
    6. run is  
    7. local  
    8. io : BASIC_IO;  
    9. do  
    10. !!io;  
    11. io.put_string("Hello World!");  
    12. io.put_newline  
    13. end; -- run  
    14. end; -- class HELLO  

    erlang_hw.erl

    1. -module(erlang_hw).  
    2. -export([start/0]).  
    3. start() ->  
    4.   io:format("Hello World~n").  

    focal.fc

    1. 0.1.0.1 TYPE "HELLO WORLD" , !  

    fortran.f90

    1. program helloworld  
    2. print *,'Hello World'  
    3. end program helloworld  

    fortran77.f77

    1. PROGRAM HELLOW  
    2. WRITE(UNIT=*, FMT=*) 'Hello World'  
    3. END  

    haskell.hs

    1. module Main  
    2. where  
    3. main=putStrLn "Hello, World!"  

    hq9+.h

    1. H  

    Io.Io

    1. "Hello, world!/n" print  

    java.java

    1. class helloclass  
    2. {  
    3. public static void main(String args[])  
    4. {  
    5. System.out.println("Hello World");  
    6. }  
    7. }  

    javascript.js

    1. alert("Hello World");  

    linux-x86.nasm

    1. # nasm linux-x86.nasm -o linux-x86.o -f elf && ld linux-x86.o -m elf_i386 -o linux-x86   
    2. section .data  
    3. msg db "Hello World", 0xa  
    4. len equ $ - msg  
    5. section .text  
    6. global _start  
    7. _start:  
    8. mov eax, 4  
    9. mov ebx, 1  
    10. mov ecx, msg  
    11. mov edx, len  
    12. int 0x80  
    13. mov eax, 1  
    14. mov ebx, 0  
    15. int 0x80  

    lua.lua

    1. print("Hello World")  

    nu.nu

    1. (puts "Hello World")  

    ocaml.ml

    1. print_string "Hello World/n"  

    pascal.p

    1. program HelloWorld(output);  
    2. begin  
    3.         writeln('Hello World')  
    4. end  

    perl.pl

    1. #!/usr/bin/perl   
    2. print "Hello World/n";  

    php.php

    1. <?php  
    2. print("Hello World");  
    3. ?>  

    python.py

    1. #!/usr/bin/env python   
    2. print "Hello World"  

    ruby.rb navie.net

    1. #!/usr/bin/ruby   
    2. puts "Hello World"  

    scheme.scm

    1. (display "Hello World") (newline)  

    shell.sh

    1. #!/bin/sh   
    2. echo "Hello World"  

    telephone

    1. #How to Spell HELO WORLD on a standard telephone keypad uiok.net   
    2. 435509 990753  

     

    turing.oot

    1. put "Hello World"  
  • 相关阅读:
    随时间的反向传播算法 BPTT
    实时绘制训练过程中损失和准确率的变化趋势 python keras jupyter notebook
    测试集的准确率为什么高于训练集的准确率?
    Adagrad和Stochastic梯度下降
    使用http-server在本地搭建一个HTTP服务器
    JS Promise
    npm淘宝镜像
    git子模块submodule
    git本地与远程分支
    git别名
  • 原文地址:https://www.cnblogs.com/zhouwenwu/p/2373863.html
Copyright © 2020-2023  润新知