zoukankan      html  css  js  c++  java
  • hello world

    各种语言的 hello world

    Shell
    
    echo "hello world"
    python 2.6 
    print
    "hello,world"
    Python 3.+

    print ("hello,world")
    C++ 
    
    # include <ostream>
    int main (void)
    {
    std::cout<<"hello world";
    }
    C 
    
    # include <stdio.h>
    int main (void)
    {
    printf ("
    hello world!")
    return;
    }
    Java
    public class helloworld {
    // 程序的入口
    public static void main (String args[]){
    // 向控制台输出信息
    System.out.println("hello world!");
    }
    }
    Php
    
    <?php
    echo "hello world!";
    ?>
    Ruby 
    
    puts "hello world."
    Go
    
    package
    import "fmt"
    func main(){
    fmt.Printf("hello world!
     God Bless You");
    
    }
  • 相关阅读:
    python小程序之购物系统
    列表,元祖,字典的使用
    几个python小程序
    default
    RTTI
    man
    养喜神去杀机
    IDEA+Maven+Git
    入门
    CheckStyle简介
  • 原文地址:https://www.cnblogs.com/sharesdk/p/9203152.html
Copyright © 2011-2022 走看看