C/C++
1 2 3 4 5 | #include <stdio.h> int main() { printf("Hello world!"); return 0; } |
Bash
1 2 3 | #!/bin/bash STR="Hello World!" echo $STR |
Python
1 2 | #!/usr/bin/python print 'Hello World' |
Ruby
1 2 3 | #!/usr/bin/env ruby require 'rubygems' require 'sinatra' |
Perl
1 2 | #!/usr/bin/perl print "Hello, World!n"; |
Java
1 2 3 4 5 | public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World"); } } |
发表回复