- 11月 05 週一 201813:03
手把手打開Python資料分析大門
- 3月 24 週二 201515:33
如何在Notepad++執行python?

如何在Notepad++執行python (How to Execute a Python File in Notepad ++?)
開啟 Notepad++. 在選單點選 執行 -> 執行.. (F5).輸入:
C:\Python27\python.exe "$(FULL_CURRENT_PATH)"
- 12月 08 週一 201423:03
if __name__ == "__main__"是什麼意思?

Python裡的if __name__ == "__main__"是什麼意思?
以我是一個剛學習python的新手,常看到程式裡都會寫一段這樣的code
if __name__ == "__main__"
我的內心不禁產生許多的????
google了一下,才了解:
- 2月 23 週四 201200:06
盈餘成長率【g】的計算
自己作一個盈餘成長率【g】的計算機由於太懶惰了,想用現學現賣的python來試著做看看----盈餘成長率【g】的計算機
程式碼:
- 2月 15 週三 201222:30
資料截取程式2(data-grabbing program)---抓營收
到公開資訊觀測站抓台泥營收
程式碼:
import urllib.request
程式碼:
import urllib.request
- 2月 15 週三 201221:56
資料截取程式1(data-grabbing program)
截取 http://beans.itcarlow.ie/prices.html 的網頁資訊程式碼:
- 1月 20 週五 201216:56
Python的禪意(The Zen of Python)
The Zen of Python (英文原文版)Beautiful is better than ugly.
Explicit is better than implicit.
- 1月 17 週二 201206:59
Python_Basic
Python_Basic 轉自雨蒼的ppt
- 1月 09 週一 201201:50
Python if & elif & else練習
程式碼:#if_excise
#if & elif & else的練習
i=int(input("請輸入一個小於14的正整數:"))
if i>13:
print("你輸入的數字太大了")
elif i<0:
print("你輸入的數字小於零")
else:
if i>7:
print("你輸入的數字比7大")
elif i==7:
print("你輸入的數字剛好等於7")
else:
print("你輸入的數字比7小")
- 1月 07 週六 201223:41
python list 找出偶數(even numbers)練習
ex:令L = [1,2,3,4,5,6,7,8,9,10],請把其中的偶數找出來
程式碼:
