V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Duolingo
V2EX  ›  问与答

请教各位,现在用 python3 开发小工具,都用哪个小版本呢?

  •  
  •   Duolingo · Aug 8, 2021 · 1996 views
    This topic created in 1723 days ago, the information mentioned may be changed or developed.

    看了下 python 官网,3.6 3.7 3.8 3.9 都在维护,3.9 还在 bugfix,那是不是先上 3.8 比较好?

    pip 包的话,各个小版本区别大吗?

    非常感谢。

    5 replies    2021-08-08 15:50:41 +08:00
    ysc3839
        1
    ysc3839  
       Aug 8, 2021   ❤️ 2
    我一般会用最新的版本。
    zxCoder
        2
    zxCoder  
       Aug 8, 2021   ❤️ 1
    最新的吧
    xiaopc
        3
    xiaopc  
       Aug 8, 2021   ❤️ 1
    昨天有个帖子说,各大云服务商提供的基础环境版本太低
    以各家 Cloud Functions 服务来讲,Python 3 一般给到 3.7.9 (所以 shell 默认版本设成这个),最低的是 t 云和 a 云只到 3.6.1,最高的貌似是 Google Cloud Functions 给到 3.9
    pip 用到的依赖包,卡 Python 小版本号「修订号」的不多。
    以在写的小工具来说,3.6 到 3.8 没什么区别; 3.9 的标准库有些改变,就有些依赖包需要调整
    Duolingo
        4
    Duolingo  
    OP
       Aug 8, 2021
    感谢!那就先用 3.9 了。
    hushao
        5
    hushao  
       Aug 8, 2021   ❤️ 1
    生产 3.6.5
    本地 3.8.6
    用不到新特性就 3.6 最新版本。用到新特性就用到哪个特性选哪个版本
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5448 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 09:31 · PVG 17:31 · LAX 02:31 · JFK 05:31
    ♥ Do have faith in what you're doing.