8000 GitHub - PearlCUclass/Lesson1
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PearlCUclass/Lesson1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lesson 1

這是一個範例教學用的程式專案,裡面包含四種小工具:

  1. 第一支經典程式(Hello World):這是一個簡單的程式示例,用於展示如何輸出"Hello World"。通常用於新手入門學習。
  2. 簡易主選單(Main Menu):這個程式會顯示一個簡單的主選單,並讓使用者選擇操作。
  3. 日期計算機(Day Calculator):這個程式會要求使用者輸入兩個日期,然後計算兩個日期之間的天數,亦可計算距離特定日期的倒數天數。
  4. 倒數紀念日(Day Countdown)::這個程式會要求使用者輸入一個日期,然後計算距離該日期的倒數天數。

開始

先決條件

確保你的機器上已安裝了Python。你可以從 python.org 下載它。

1. hello_world.py

簡介:這是一個簡單的"Hello, World!"程式。

執行程式

  1. 將這個存儲庫複製到本地端。
git clone https://github.com/your-username/hello-world-python.git
  1. 切換到下載的資料夾
cd hello-world-python
  1. 執行Python程式
python hello_world.py
  1. 會看到以下輸出:
Hello, World!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0