最新回答 / 寶慕林207862
def n(L):? ? sum = 0? ? for x in L:? ? ? ? sum = sum + x * x? ? return sumprint n([1, 2, 3, 4, 5])print n([-5, 0, 5, 15, 25])??
2019-07-08
最新回答 / AY9717
如果你是想問 怎么把新安裝的python3設為默認版本的話,可以看下面第一、打開終端第二、cd ~ 到當前用戶目錄第三、open .bash_profile 打開文件,我們其實需要進行修改文件,不過問題是當前目錄中沒有.bash_profile文件第四、touch .bash_profile 創建一個第五、用vim命令打開.bash_profile文件,直接添加腳本```python????alias python="/Library/Frameworks/Python.framework/Version...
2019-07-07