阿好伯
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee
  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    2
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    --- disqus: ahb0222 GA : G-CQ4L16KHK4 --- # 30 Days of Python學習筆記 > [color=#40f1ef][name=LHB阿好伯, 2020/11/18][:earth_africa:](https://www.facebook.com/LHB0222/) ###### tags: `Python_30` ![](https://i.imgur.com/n9jcnC2.jpg) [TOC] https://github.com/Asabeneh/30-Days-Of-Python - [Python基本認識與R的比較](/pJ43YRFgTaOkSQQ0Emncyg) - 註解符號# - 變數命名 - 基本計算 - 四則運算 - 餘數和商數 - 次方或平方根 - 常用運算函數 - 指派運算子 - 多重賦值 - 物件變數 - 參考資料與書籍 - [第一天](/2-SX8PiUTbW5VHVIOPiwOg) - 介紹 - 安裝 - 基礎計算 - 資料類型 - Number數值 - Booleans布爾值 - List清單 - Dictionary字典 - Tuple - Set - [第二天](/qKATviFuRDOcMtVwyd2v6Q) - 內置函數 - 變數 - - 命名 - 資料類型與轉換 - - 檢查 - 轉換 - [第三天 運算子](/JcdfGwbBRKKgnyXg6hEmiA) - 算術運子 - 指派運算子 - 多重賦值 - 關係運算子 - 邏輯運算子 - [第四天 字串](/TSeooHXDSwC7a_OLvB7Ntg) - 字串建立 - 資料型態-type() & class() - 多行字串 - 字串資料 - 字串合併 - 跳脫字元(Escape Character)與ASCII - String formating字串格式化 - 舊式字串格式化 - 新式字串格式化format() - Formatted String Literal字串插值 - Python字符串作為字符序列 - 通過索引訪問字符串中的字符 - 反轉字符串 - 跳過片段 - 常用字串函數 - [第五天 list清單](/vCN7TwuWRKW-QDmoznnbSA) - 清單建立 - 建立空清單 list() - 建立多筆資料的清單 - 清單索引 - Indexing_正索引 - Negative Indexing_負索引 - Slicing Items from a List清單資料擷取 - Reversing a List 清單反轉 - 清單修改 - Modifying Lists修改清單 - Adding Items to a List添加清單項目 - Joining Lists串接清單 - Removing Items from a List刪除清單項目 - Removing Items Using Pop刪除清單最後一個項目 - Removing Items Using Del 刪除物件 - Clearing List Items清空清單 - Counting Items in a List計算清單中特定物件數量 - Finding Index of an Itemt查詢特定物件 - Sorting List Items 清單排序 - [第六天 Tuples元組](/plBttIX0QzWyqd3K9tjjPg) - Tuples元組 - Tuples創建 - Tuples資料索引與擷取 - 串接Tuples - Tuples轉換為Lists - 搜尋Tuples - 刪除 - [第七天 Sets 集合](/C-w50MiPToW3hXDEOCoPog) - Sets 集合 - 創建集合 - 空集合 - 創立集合 - 添加集合項目 - 從集合中刪除項目 - 刪除與清除集合 - 清單轉換成集合 - Joining Sets聯接集 - Union聯集 - Intersection交集 - subset子集與superset超集 - Difference Between Two Sets比對兩集合差異 - symmetric difference對稱差集 - [第八天](/nky90txUSVW_1MXyPsyNcQ) 看不太懂其用處,這單元先跳過 - [第九天 Conditionals 條件判斷](/vA_udmdTSnGmJGz43JqJAQ) - Conditionals 條件判斷 - IF Condition 如果判斷 - IF … ELSE…單層判斷 - IF…ELIF…ELSE…多層判斷 - 巢狀結構 - 使用 and、or 進行條件判斷-減少巢狀使用 - [第十天 Loops迴圈](/eHZN0XxST0WO7gB47DRKRA) - while Loops - 中斷 while Loops - 跳過while Loops - For Loop - 中斷for loops - 跳過for Loops - repeat重複循環 - [第十一天 Functions函數](/wL9UPB0fSlGUoxsLRprZsw) - 自訂函數Defining a Function - 使用reture回傳結果的應用 - 添加默認參數 - 任意數量的參數輸入 - 函數作為另一個函數的參數 - Lambda-無名函數 - 基本寫法 - 嵌套於別的函數中 - [第十二天 Modules模組](/WY9S704_RlKvmI47QUsSBQ) - 創建一個模組 - 載入模組並重新命名 - 載入內置模組 - 操作檔案與路徑-os - 統計模塊-statistics - 數學模塊-math - 字串模組-string - 常用函數 - 字串常數 - 亂數模組-random - 設定亂數種子 - [第十三天 List Comprehension](/M02dZ4OlRz-EIni_9REyMQ) - 清單(List)的Comprehension - 結合if條件式 - [第十四天 Higher Order Functions高階函數](/ZPicdCDLTMaNfXiu7by8mw) - First Class Function(一級函數) - 作為參數 - 作為結果回傳 - 嵌套函數 - R & Python Decorators 裝飾器 - 創建裝飾器 - 內建高階函數 - 可疊代函數-map(“python”) & apply(“R”) - 可疊代篩選 - filter() - [第十五天 錯誤類型](/3kLX4oZTQFOAetEQeMuang) - 這章節在介紹錯誤資訊,我覺得稍微讀過有遇到問題再來看就好,所以先跳過 - [第十六天 時間與日期](/XG-k7cODRWaVPCvOHYxOUA) - 取得時間資訊 - date日期函數 - time 時間函數 - strftime時間格式 - strftime 格式化日期輸出 - strptime 字串轉換為時間格式 - timedelata 計算日期差 - [第十八天 正則表達式](/hFhWVJGHSNGYvTCvlo5_0g) - 建立re正規表達式物件re.compile() - 搜尋數字 \d | [0-9] - 符合多次 * | + | {} - 貪婪模式 ? - 分組查詢 () 、 字元集合 [] - 相關函數 - 尋找相符字串re.match & re.search() - 使用多行註解模式_re.X - R語言 - 好用的線上測試網站_regex101 - Rstudio好用正規表達式套件_remotes - [第十九天 檔案管理](/3w1amdXBTtuPZaVmegAacA) - [Python Selenium使用紀錄](/v6NzhxciTZufM34ajtEkCw) 全文分享至 https://www.facebook.com/LHB0222/ 有疑問想討論的都歡迎於下方留言 喜歡的幫我分享給所有的朋友 \o/ 有所錯誤歡迎指教 # [:page_with_curl: 全部文章列表](https://hackmd.io/@LHB-0222/AllWritings) ![](https://i.imgur.com/47HlvGH.png)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully