zoukankan      html  css  js  c++  java
  • [Python Study Notes] 编程仪式感的Hello World!

       学习还是要有一点仪式感的,学单片机第一步,点个灯;学编程第一步,hello world!

    1 C:UsersLiu>python
    2 Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32
    3 Type "help", "copyright", "credits" or "license" for more information.
    4 >>> print("hello world")
    5 hello world
    6 >>>

    为了加深仪式感,下面附上各种编程代码的Hello World!

    C++:

    1 #include <iostream>
    2 int main(void)
    3 {
    4 std::cout<<"Hello world";
    5 }

    C:

    1 #include <stdio.h>
    2 int main(void)
    3 {
    4 printf("
    hello world!");
    5 return 0;
    6 }

    JAVA:

    1 #include <stdio.h>
    2 int main(void)
    3 {
    4 printf("
    hello world!");
    5 return 0;
    6 }

    PHP:

    1 <?php  
    2             echo "hello world!";  
    3 ?>  

    Go:

    1 package main
    2 
    3 import "fmt"
    4 
    5 func main(){
    6 
    7     fmt.Printf("Hello World!
     God Bless You!");
    8 
    9 }

     公司事情比较多,希望自己能够坚持下去,一边学习,一边去总结。

    最有用的语言,除了English,其次可能是Python
  • 相关阅读:
    面试经验
    二叉树和递归
    优先队列
    队列问题
    书法学习资料
    栈的问题
    Git常用命令
    字母大小写转换
    深入类中的方法[8] - 抽象方法与抽象类
    深入类中的方法[7] - 关于 inherited
  • 原文地址:https://www.cnblogs.com/liu66blog/p/8151298.html
Copyright © 2011-2022 走看看