随笔分类 - python
摘要:感谢: https://github.com/yidao620c/python3-cookbook 如有侵权,请联系我整改。 本文章节会严格按照原书(以便和原书对照,章节标题可能会略有修改),内容会有增删。 4.1 手动遍历迭代器 >>> items [1, 2, 3] >>> it=iter(it
阅读全文
posted @ 2021-08-21 18:25
wwcg2235
摘要:1 NumPy https://numpy.org/ 2 Doc https://docs.python.org/zh-cn/3/library/fractions.html
阅读全文
posted @ 2021-08-21 08:50
wwcg2235
摘要:1 包资源 pypi.org下载非常之慢,可以添加国内资源,很快 https://pypi.tuna.tsinghua.edu.cn/simple http://pypi.douban.com/simple/ http://mirrors.aliyun.com/pypi/simple/
阅读全文
posted @ 2021-08-21 08:01
wwcg2235
摘要:感谢: https://github.com/yidao620c/python3-cookbook 如有侵权,请联系我整改。 本文章节会严格按照原书(以便和原书对照,章节标题可能会略有修改),内容会有增删。 3.1 四舍五入(伪) 示例, >>> round(3.321819,-2) 0.0 >>>
阅读全文
posted @ 2021-08-19 07:52
wwcg2235
摘要:感谢: https://github.com/yidao620c/python3-cookbook 如有侵权,请联系我整改。 本文章节会严格按照原书(以便和原书对照,章节标题可能会略有修改),内容会有增删。 2.1 用界定符分割字符串 string.split()可用于简单的分割, 复杂的使用re,
阅读全文
posted @ 2021-08-17 08:15
wwcg2235
摘要:感谢: https://github.com/yidao620c/python3-cookbook 如有侵权,请联系我整改。 本文章节会严格按照原书(以便和原书对照,章节标题可能会略有修改),内容会有增删。 1.1 解引、解引赋值 1.1.1 解引 通过*可以解引(书中翻译为解压,还是解引更舒服些)
阅读全文
posted @ 2021-08-15 16:03
wwcg2235

浙公网安备 33010602011771号