understand your pain points here. I have been using python for around 2 years. I can say that you need to fully setup your environment (include mypy, pylint) in order to be fully productive but it still takes some getting used to lol. Also, unit tests with 100% coverage can help you catch many issues like the unmatched types. In addition, if you use python on leetcode or other programming contexts, not being necessary to specify types in python actually saves you tons of time during context and python offers a lot of useful libraries as well like math and itertools.
空格那部分用softtab 就好, dynamically typed 是校適合初學者。没direct executable 真的很頭痛。但Linux Mac 還是可接受。 debug 的話,用Jupyter notebook 就很好做。 但是這些問題go Language 都没有。 Go language 真的神 我再也回不去C++了
的確,我用 Python 這麼久,都講過一件事情,就是越簡單的反而會越難,因為有很多東西都是藏起來的,不好懂或者理解。 底線,我覺得很棒,我反而越來越討厭 C 語言的大小寫規則,但我覺得只是大家不同習慣這樣,可能當初設計者也是這樣想吧? 的確一開始不用定義是蠻容易造成錯誤,但其實習慣後其實會在一開始就開始透過預設方式告知識什麼類型,等於說寫 Python 還是需要有好的寫程式習慣,才不會造成這些錯誤。而我覺得如果沒有強定型語言特性,會讓這個語言維護超困難,錯誤會因為錯誤習慣造成更多錯誤。後面那個可能只是透過加上說明方式,其實沒有寫上 type 本身是還好。 Python 跨平台真的超讚,好用而且我喜歡。如果要 Python 跨平台,建議真的要用選用純 Python 寫的套件,自己寫的過程也要減少 C 語言依賴才是好的。只是人工智慧或者其他的大多還是 C 語言,個人認為那個是因為 C 語言環境不好造成的,如果是透過 C 語言開發,也會遇到同樣的問題。另外,人工智慧的部份,其實建議 Python 是要拿來做 API 用,不然速度真的會慢到靠北。 Python 的測試其實很好用,真心覺得。自己寫過很多測試,發現我有很多可以探索的。 另外,其實 Python 從以前到現在,在 Windows 都會有一個自動產生的檔案,也是 exe 檔案,都是可以直接拿出來呼叫的。 但套件跟快速使用真的很棒哈哈哈哈,深不可自拔
Пікірлер: 437