gpt4 book ai didi

python - 如果我的一个程序在 python 2.4 中运行,但导入了一些需要 python 2.5 的东西怎么办?

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:42:49 24 4
gpt4 key购买 nike

那我该如何导入呢?我在 python 2.4 中运行所有内容,但我的脚本之一导入 xml.etree.ElementTree ...这只是 Python 2.5

最佳答案

考虑升级到 Python 2.5(或者,我敢说,2.6!-)这几十年之一... the times, they are a'changin' !同时,特别是对于 ElementTree,您可能会设法 back-patch它,但是……

Come gather 'round people
Wherever you roam
And admit that the waters
Around you have grown
And accept it that soon
You'll be drenched to the bone.
If your time to you
Is worth savin'
Then you better start swimmin'
Or you'll sink like a stone
For the times they are a-changin'.

如果在 great music 中听到它帮助你,随意......但你最好开始游泳',否则你会像石头一样下沉......!-)

关于python - 如果我的一个程序在 python 2.4 中运行,但导入了一些需要 python 2.5 的东西怎么办?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1713398/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com