MATLAB在逐渐被Python淘汰吗? - 知乎
www.zhihu.com
而且装numpy+scipy+matplotlib,体积比MATLAB小100倍。 补充一下:我只是说Python在某些包的速度以及轻量化上面有优势,不代表它全面超越了。 Python的文档写的实在是太烂了,不像MATLAB把输入输出的数据类型在文档里给你写的清清楚楚。
ModuleNotFoundError: No module named 'distutils' in Python 3.12
stackoverflow.com
It appears that customtkinter uses distutils from the standard library. Unfortunately, you're using the newly released Python 3.12, which removed distutils after it being deprecated since Python 3.10. See PEP 632 Deprecate distutils module and gh-92584 for more details about its removal. If you want to use that distribution, you'll need to either install setuptools, which now also provides ...
Python 的练手项目有哪些值得推荐? - 知乎
www.zhihu.com
python项目练习五:虚拟茶话会 python项目练习六:使用CGI进行远程编辑 python项目练习七:自定义公告板 python项目练习八:使用XML-RPC进行远程文件共享 python项目练习九:文件共享2-GUI版本 python项目练习十:DIY街机游戏 覆盖面很广的十个练手项目 实战
What does -> mean in Python function definitions?
stackoverflow.com
My summary: Simply -> is introduced to get developers to optionally specify the return type of the function. See Python Enhancement Proposal 3107 This is an indication of how things may develop in future as Python is adopted extensively - an indication towards strong typing - this is my personal observation. You can specify types for arguments ...
Python开发,真的不能做大型项目吗? - 知乎
www.zhihu.com
用python做大项目(这里假设是web)的最大的问题其实是concurrency很弱智,asyncio只支持一个线程跟一个eventloop,卡死就是真卡死了。 像Rust这种,用tokio的async,他可以steal,steal之后多少还能续一续,毕竟32核能有32个线程呢,卡死一个还有31个能用。
如何入门 Python 爬虫? - 知乎
www.zhihu.com
当然,你可以争论说需要先懂python,不然怎么学会python做爬虫呢? 但是事实上,你完全可以在做这个爬虫的过程中学习python :D 看到前面很多答案都讲的“术”——用什么软件怎么爬,那我就讲讲“道”和“术”吧——爬虫怎么工作以及怎么在python实现。
Getting a map() to return a list in Python 3.x - Stack Overflow
stackoverflow.com
In Python 3+, many processes that iterate over iterables return iterators themselves. In most cases, this ends up saving memory, and should make things go faster. If all you're going to do is iterate over this list eventually, there's no need to even convert it to a list, because you can still iterate over the map object like so: