PAT-B 1001. 害死人不償命的(3n+1)猜測 (python)

1. 到python主頁下載py2 -- py3的話庫可能少些,以前書本里的例子也跑不起來。python 2. python用空格縮進,不用分號分割語句函數 3. while, if後要加冒號code 4. input, print函數的使用input 5. main函數不用return ...源碼 源碼:class if __name__ == "__main__": n = input
相關文章
相關標籤/搜索