從大二開始寫 php 一直到現在工作也在寫 php ... ( 雖然公司目前不允許用 python ... )
寫到自己覺得 server side 有點太侷限於 PHP 了 …
所以打算開始認真學 python
先從 codecademy 基本的開始吧
邊學就邊做筆記 !
1. # 單行註解
2. """
多行註解
"""
3. len, str are function : str(variable)
upper, lower are method : variable.upper()
test = "HelloWorld"
test is string object and it has it's own method of upper() and lower()
fibonacci 數列 ( recursive )
十進位轉二進位
ps. 我覺得我 recursive 的觀念不是很好啊 > < … 想很久才想到要怎麼寫 … 看來要好好練習了 …




沒有留言:
張貼留言