大学适合学C语言还是Python? - 知乎
www.zhihu.com
我是学完了C再学Python的。 我的感受就是C对我学Python而言唯一的帮助就是,每当我觉得难的时候就会想C我都学下来了,python有什么好难得呢?Python本身并不难,就是语法与C不一样,要适应一下,难的就是还要没完没了的学这个库,那个库。很烦啊。。。 事实上,我学C的时候,也觉得烦。因为我先 ...
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 ...
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项目练习五:虚拟茶话会 python项目练习六:使用CGI进行远程编辑 python项目练习七:自定义公告板 python项目练习八:使用XML-RPC进行远程文件共享 python项目练习九:文件共享2-GUI版本 python项目练习十:DIY街机游戏 覆盖面很广的十个练手项目 实战
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实现。