开发喵星球

100种不同编程语言或技术中输出 “Hello, World!” 的方式:

一周学习计划星期表课程表

  1. Python: print("Hello, World!")
  2. Java: System.out.println("Hello, World!");
  3. C++: cout << "Hello, World!" << endl;
  4. JavaScript: console.log("Hello, World!");
  5. Ruby: puts "Hello, World!"
  6. C#: Console.WriteLine("Hello, World!");
  7. Swift: print("Hello, World!")
  8. Go: fmt.Println("Hello, World!")
  9. PHP: echo "Hello, World!";
  10. Kotlin: println("Hello, World!")
  11. Rust: println!("Hello, World!");
  12. TypeScript: console.log("Hello, World!");
  13. Dart: print("Hello, World!");
  14. R: cat("Hello, World!\n")
  15. MATLAB: disp('Hello, World!')
  16. Perl: print "Hello, World!\n";
  17. Bash: echo "Hello, World!"
  18. PowerShell: Write-Output "Hello, World!"
  19. SQL: SELECT 'Hello, World!';
  20. HTML: <p>Hello, World!</p>
  21. CSS: content: "Hello, World!";
  22. Assembly Language: section .data hello db 'Hello, World!',0
  23. MATLAB: fprintf('Hello, World!\n');
  24. Dart: void main() => print('Hello, World!');
  25. Lua: print("Hello, World!")
  26. Groovy: println "Hello, World!"
  27. Scala: println("Hello, World!")
  28. Lisp: (format t "Hello, World!")
  29. VHDL: write("Hello, World!");
  30. Perl 6: say "Hello, World!"
  31. COBOL: DISPLAY 'Hello, World!'
  32. Swift: print("Hello, World!", terminator: "")
  33. Julia: println("Hello, World!")
  34. Tcl: puts "Hello, World!"
  35. Kotlin: fun main() { println("Hello, World!") }
  36. Erlang: io:format("Hello, World!~n").
  37. Ada: put_line("Hello, World!");
  38. OCaml: print_endline "Hello, World!";
  39. Crystal: puts "Hello, World!"
  40. CoffeeScript: console.log "Hello, World!"
  41. Elixir: IO.puts "Hello, World!"
  42. F#: printfn "Hello, World!"
  43. Haxe: trace("Hello, World!");
  44. MATLAB: disp('Hello, World!')
  45. Objective-C: NSLog(@"Hello, World!");
  46. VHDL: put_line("Hello, World!");
  47. FORTRAN: write(*,*) "Hello, World!"
  48. COBOL: DISPLAY 'Hello, World!'
  49. Scratch: 使用图形界面拖拽"say Hello, World!"块
  50. Brainfuck: +[--->++<]>+.+++++++..+++.[->++++<]>+.+++++++++++++.---------.++++++++++++.
  51. Swift: import Swift; Swift.print("Hello, World!")
  52. Groovy: println "Hello, World!"
  53. Rust: println!("Hello, World!");
  54. Perl 5: print "Hello, World!\n";
  55. Racket: (displayln "Hello, World!")
  56. Common Lisp: (format t "Hello, World!")
  57. Julia: println("Hello, World!")
  58. VHDL: report "Hello, World!";
  59. Ada: Put_Line("Hello, World!");
  60. Clojure: (println "Hello, World!")
  61. MATLAB: fprintf('Hello, World!\n');
  62. Dart: void main() => print('Hello, World!');
  63. Lua: print("Hello, World!")
  64. Groovy: println "Hello, World!"
  65. Scala: println("Hello, World!")
  66. Lisp: (format t "Hello, World!")
  67. VHDL: write("Hello, World!");
  68. Perl 6: say "Hello, World!"
  69. COBOL: DISPLAY 'Hello, World!'
  70. Swift: print("Hello, World!", terminator: "")
  71. Julia: println("Hello, World!")
  72. Tcl: puts "Hello, World!"
  73. Kotlin: fun main() { println("Hello, World!") }
  74. Erlang: io:format("Hello, World!~n").
  75. Ada: put_line("Hello, World!");
  76. OCaml: print_endline "Hello, World!";
  77. Crystal: puts "Hello, World!"
  78. CoffeeScript: console.log "Hello, World!"
  79. Elixir: IO.puts "Hello, World!"
  80. F#: printfn "Hello, World!"
  81. Haxe: trace("Hello, World!");
  82. MATLAB: disp('Hello, World!')
  83. Objective-C: NSLog(@"Hello, World!");
  84. VHDL: put_line("Hello, World!");
  85. FORTRAN: write(*,*) "Hello, World!"
  86. COBOL: DISPLAY 'Hello, World!'
  87. Scratch: 使用图形界面拖拽"say Hello, World!"块
  88. Brainfuck: +[--->++<]>+.+++++++..+++.[->++++<]>+.+++++++++++++.---------.++++++++++++.
  89. PowerShell: echo "Hello, World!"
  90. MATLAB: disp('Hello, World!')
  91. SQL: PRINT 'Hello, World!';
  92. Ruby: print "Hello, World!\n"
  93. AWK: BEGIN {print "Hello, World!"}
  94. COBOL: DISPLAY 'Hello, World'
  95. Perl 6: put "Hello, World!";
  96. Groovy: println("Hello, World!")
  97. Swift: print("Hello, World!", terminator: "\n")
  98. Racket: (displayln "Hello, World!")
  99. Ada: Put("Hello, World!");
  100. Elixir: IO.puts("Hello, World!")

这些示例展示了不同编程语言和技术中输出 "Hello, World!" 的多种方式。不同语言可能需要不同的语法和环境来运行。

   
分类:玩技术 作者:美立新辰 发表于:2023-09-01 16:56:58 阅读量:89
<<   >>


powered by kaifamiao