Intro to Python Data types

一、未來使用Python的基礎

  1. syntax
  2. datatype

Untitled

二、Case sensitive

在python中,需要特別注意大小寫是視為不同的東西

例如 : APPLE 、 apple 就會是兩個完全不同的變數

三、Indentation

用來區別程式碼段落

在執行時會分為不同區塊進行,一個區塊結束才會往下個區塊繼續執行

四、Tab & Space

  1. 1Tab = 4Spaces

  2. Tab 跟 Space 不要混用,容易導致error出現!

    "IndentationError: unindent does not match any outer indentation level.”

Operations for Numbers in Python

一、Numbers

  1. 數字的不同型態