【发布时间】:2019-03-15 11:47:44
【问题描述】:
我需要一些帮助才能让我的 python 脚本同时在 python2 和 python3 上运行。 在 python3 中,当我运行脚本并到达您选择 ITAG 的部分时,它说:
From the lists above, find the ITAG number of the format you want to convert the video to.
Type the ITAG number here:
Traceback (most recent call last):
File "/home/MrMcTiller/autopytubev2_working.py", line 299, in <module>
Type the ITAG number here: """))
ValueError: could not convert string to float:
>>>
【问题讨论】:
-
这个问题太模糊了。要改进它,您需要提出具体问题。
-
@JackAidley,我更新了问题。
-
创建标题时,请尝试描述您遇到的问题,而不是您遇到问题的事实。
-
感谢您的更新,由于您遇到特定问题,我已投票支持重新打开,但可以通过将产生问题的特定代码部分引入问题来改进问题,并且最好创建显示问题的最小完整示例(请参阅stackoverflow.com/help/mcve 寻求帮助)。
-
简而言之:我们需要您的代码,在这里。 (并非全部,在外部链接中。这就是minimal reproducible example 所指的内容。)
标签: python python-3.x python-2.7