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");
    
    }
  • 相关阅读:
    structInMemory
    合并字符串
    eggs
    1005. Spell It Right (20) -PAT
    60 人工智能
    50 计算机网络
    20数据结构
    40操作系统
    10 C/C++/python
    30汇编
  • 原文地址:https://www.cnblogs.com/sharesdk/p/9203152.html
Copyright © 2011-2022 走看看