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
相关文章
相关标签/搜索