【问题标题】:How can i tell if this repository is using python3 or 2?我如何判断这个存储库是使用 python3 还是 2?
【发布时间】:2016-07-28 19:10:29
【问题描述】:

https://github.com/tekno45/dndchar

我分叉了这个存储库,我想在工作中处理它。有没有办法判断它是用 3 还是 2 写的?

【问题讨论】:

  • print 是语句而不是函数,它是 Python 2。

标签: python python-2.7 python-3.x github


【解决方案1】:

它是用 Python 2 编写的。

最大的提示是print 是一个语句,而不是函数。

【讨论】:

    猜你喜欢
    • 2017-08-26
    • 1970-01-01
    • 2020-10-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多