fred ko
    • 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

      This note has no invitees

    • 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
    • Note Insights New
    • Engagement control
    • Make a copy
    • 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 Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy 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

    This note has no invitees

  • 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
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    ## wk02_0229_ 1.markdown 2.input ouput 3.datatype ### 【inclass practic】 ## 目的地:橫山書法藝術公園 ### 行程安排: - 出發時間: 早上 9 點 - 交通方式: 搭乘機捷 - 路線規劃: 1. 從A7搭乘桃園捷運到A17「領航站」。 2. 出捷運站後往右沿著領航北路直走。 3. 到大豐四街交叉口,過馬路到對面,繼續沿著大豐四街一直直走。 4. 直走到底抵達橫山書法藝術公園,先逛公園再去藝術館。 ### 活動安排: 1. 參觀書法展覽: 在橫山書法藝術公園內欣賞書法名家的作品展覽,感受書法藝術的魅力。 2. 體驗書法創作: 參加書法體驗活動,親自體驗揮毫泼墨的樂趣,創作屬於自己的書法作品。 3. 品嚐當地美食: 在公園附近的小吃攤或餐廳,品嚐橫山特色美食,如客家小吃或新鮮水果。 ### 注意事項: - 攜帶物品: 帶備相機、雨具(依天氣情況而定)、水和輕食,以便在旅程中使用。 - 車資: 請準備零錢支付車資,建議攜帶儲值卡以方便乘車。 - 機捷班次: 請事先查詢機捷的班次時間,以免錯過時間。 目的地:橫山書法藝術公園 # 阿軒胖子 ## 阿軒胖子 ### 阿軒胖子 ##### 阿軒胖子 --- 情緒 + 喜 1. 喜出望外 2. 喜上眉梢 9. 喜不自哭 - 怒 - 哀 - 樂 --- *斜體* **粗體** --- [markdown sytax](https://markdown.tw/) --- 我愛貓咪 ![](cat.jfif) <pre> 標題 # 、6層 引用文字 >、 空白列 清單 : 編號 n. 項目符號 * or - or + 層級 tab 或 兩個空格 分隔線 --- 或 *** 程式碼 ``` 斜體 / 粗體 _ 或 * 包圍 / __ 或 ** 包圍 超連結 [an example](http://example.com/] 圖片 ![Alt text](/path/to/img.jpg) </pre> ```python name='fred' height=170 weight=57 BMI=57/(1.7)**2 print('fred的BMI是',BMI) ``` fred的BMI是 19.723183391003463 ```python print('你好fred你的身高為170公分,你的體重為57公斤,你的BMI為19.7') print('你好',name,'你的身高為',height,'公分','你的體重為',weight,'公斤','你的BMI為',BMI,sep=' ') ``` 你好fred你的身高為170公分,你的體重為57公斤,你的BMI為19.7 你好 fred 你的身高為 170 公分 你的體重為 57 公斤 你的BMI為 19.723183391003463 ```python print("你好,%s,你的身高為%d公分,你的體重為%d公斤,你的BMI為%f" % (name,height,weight,BMI)) ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) Cell In[16], line 1 ----> 1 print("你好,%s,你的身高為%d公分,你的體重為%d公斤,你的BMI為%f" % (name,height,weight,BMI)) TypeError: %d format: a real number is required, not str ```python print(f'你好,{name},你的身高為{height}公分,你的體重為{weight}公斤,你的BMI為{BMI}') ``` 你好,fred,你的身高為170公分,你的體重為57公斤,你的BMI為19.723183391003463 ```python n=input('what your name?') h=int(input('what your height in cm?')) w=int(input('what your weight in kg?')) BMI=w/(h/100)**2 print(f'你好,{n},你的身高為{h}公分,你的體重為{w}公斤,你的BMI為{BMI}') ``` what your name?4 what your height in cm?65 what your weight in kg?5 你好,4,你的身高為65公分,你的體重為5公斤,你的BMI為11.834319526627217 ### [afterclass practice] # 葛柏劭學習計劃表 ### 計畫目的: 考取多益金色證書 #### 列表: - [本週week02]學習目標 - 目標1:背完150個多益中階單字 - 目標2:寫兩篇文章練習寫作(使用參考書題本) - 目標3:閱讀完美國cnn新聞時事2篇 - [下週week03]學習目標 - 目標1:完成多益模擬考題本1回並達到800分以上 - 目標2:練習聽力(每天一回) - 目標3:閱讀完美國cnn新聞時事2篇 用Markdown語法中的標題(#)和列表(-)來排版。 注意適當的空格和縮排,使文本看起來整潔易讀。 請在編輯器中實際練習並檢查語法的正確性和結果的呈現效果。 這個練習題幫助熟悉Markdown語法的基本使用方法,同時應用到實際的學習場景中,以利理解和掌握。 ## practice1 小英任職於國稅局,請設計程式以 print 命令字串格式化方式整齊列印出最近 三年的年度各種稅收達成率報表。 ```python print('年度 所得稅 營業稅 證交稅') print('%4s %3.2f %3.2f %3.2f'%(2017,98.34,90.20,104.79)) print('%4s %3.2f %3.2f %3.2f'%(2016,83.00,110.50,82.45)) print('%4s %3.2f %3.2f %3.2f'%(2015,98.00,79.32,102.00)) ``` 年度 所得稅 營業稅 證交稅 2017 98.34 90.20 104.79 2016 83.00 110.50 82.45 2015 98.00 79.32 102.00 ## practice2 小明薪水包括基本薪資、工作獎金及加班費,設計程式讓小明輸入各項薪資金 額後為其計算薪資總額。 ```python a=int(input('請輸入薪資金額:')) b=int(input('請輸入工作獎金:')) c=int(input('請輸入加班費:')) d=a+b+c print('本月實領金額:',d) ``` 請輸入薪資金額:4545 請輸入工作獎金:656 請輸入加班費:654 本月實領金額: 5855 ## practice3 長方形面積=長*高,小華的教室為長方形,設計程式讓小華輸入長方形的長度及高度後計算長方形面積。 ```python long=int(input('請輸入長方形的長度:')) width=int(input('請輸入長方形的寬度:')) area=long*width print('長方形面積為:',area) ``` 請輸入長方形的長度:12 請輸入長方形的寬度:8 長方形面積為: 96 ## practice4 小蔡手機遺失了,他現在有50000元,想購買新手機,設計程式讓小蔡輸入 手機價錢後,以複合指定運算子計算購買手機後還剩多少錢? ```python phone=int(input('請輸入手機金額:')) money=50000-phone print('剩餘存款為:',money) ``` 請輸入手機金額:12000 剩餘存款為: 38000

    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