小编Add*_*son的帖子

是否可以在 Python 3.6 中为 iOS 编写 Kivy 应用程序?

所以我正在使用 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

python python-3.x kivy

3
推荐指数
1
解决办法
3265
查看次数

在列表上使用 remove() 后,“TypeError: 'NoneType' 类型的对象没有 len()”

我有这个代码:

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()工作原理,但也许我不明白?

为什么我会收到这个错误?

python list python-3.x

2
推荐指数
1
解决办法
386
查看次数

标签 统计

python ×2

python-3.x ×2

kivy ×1

list ×1