汇编: msg$: db "hello world$" Fortran: WRITE (*,*) "hello world" Lisp: (write-line "hello world") Cobol: DISPLAY "hello world" BASIC: PRINT "hello world" Logo: print [hello world] B: putstr("hello world") Pascal: writeln("hello world") Forth: ." hello world" C: printf("hello world") Smalltalk: Transcript show: "hello world" Prolog: write("hello world") ML: print "hello world" Scheme: (display "hello world") C++: cout < < "hello world" Ada: Ada.Text_IO.Put_Line ("hello world") Common Lisp: (princ "hello world") MATLAB: disp("hello world") Eiffel: print ("hello world%N") Objective-C: NSLog(@"hello world") Erlang: io:format("hello world") Perl: print "hello world" Caml: print_string "hello world" Tcl: puts "hello world" Haskell: putStrLn "hello world" Python: print("hello world") Visual Basic: Debug.Print "hello world" Lua: print("hello world") Ruby: puts "hello world" Java: System.out.println("hello world") JavaScript: document.write("hello world") PHP: echo "hello world" HTML: hello world Rebol: print "hello world" ActionScript: trace("hello world") D: writefln("hello world") C#: Console.WriteLine("hello world") Groovy: println "hello world" Scala: println("hello world") F#: printfn "hello world" Windows PowerShell: echo "hello world" Clojure: (println "hello world") Go: fmt.Println("hello world") Rust: println("hello world") Dart: print("hello world") Kotlin: println("hello world") Ceylon: print("hello world") TypeScript: console.log("hello world") Julia: println("hello world") Swift: print("hello world") Delphi: ShowMessage("hello world")