• [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
  • 相关阅读:
    [Postman]历史(8)
    [Postman]响应(7)
    [Postman]请求(6)
    [Postman]查找替换(5)
    ORA-02050故障诊断一例
    转 js实践篇:例外处理Try{}catch(e){}
    转 PHP
    HTML DOM getElementById() 方法
    地点选择
    9i 和 11 g 区别
  • 原文地址:https://www.cnblogs.com/liu66blog/p/8151298.html
Copyright © 2020-2023  润新知