所以我正在使用 Kivy 开发基于 Python 的应用程序,并希望将其部署在我的 iPhone 上进行测试。当我搜索如何执行此操作时,我找到了这个网站:https : //kivy.org/docs/guide/packaging-ios.html,它位于 Kivy 的官方网站上。
在顶部,它说“注意目前,iOS 的包只能用 Python 2.7 生成。Python 3.4+ 支持即将推出。
这个信息是最新的吗??如果是这样,有什么方法可以使用 Python 3.6 将应用程序部署到我的 iPhone 上,还是必须降级到 Python 2.7?
编辑:只是想提一下,我在使用 PyCharm 的 Mac 上。我使用 Python 3.6
我有这个代码:
list_of_directions = ['right', 'left', 'up', 'down']
new_list = list_of_directions.remove('right')
print(len(new_list))
Run Code Online (Sandbox Code Playgroud)
但我收到错误消息
类型错误:“NoneType”类型的对象没有 len()
我以为我了解.remove()工作原理,但也许我不明白?
为什么我会收到这个错误?