Python 官方文档:入门教程 => 点击学习
解决问题 SyntaxError: future feature annotations is not defined 解决思路 语法错误:没有定义future feature注释 解决方法 实际上是python版本不对,该语法需要在pyt
SyntaxError: future feature annotations is not defined
语法错误:没有定义future feature注释
实际上是python版本不对,该语法需要在python3.7以上,而当前版本在python3.6所以导致此错误!
conda install python==3.7.0
如果因为无法及时安装,临时将以下注释掉也可以运行当前代码
# from __future__ import annotations
来源地址:https://blog.csdn.net/weixin_42131208/article/details/129836544
--结束END--
本文标题: SyntaxError: future feature annotations is not defined
本文链接: https://www.lsjlt.com/news/396825.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-03-01
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0