Python 官方文档:入门教程 => 点击学习
成功解决SyntaxError: future feature annotations is not defined 目录 解决问题 解决思路 解决方法 T1、Anaconda下安装python3.7 T2、临时将以下注释掉也可以
成功解决SyntaxError: future feature annotations is not defined
目录
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/qq_41185868/article/details/129395024
--结束END--
本文标题: 成功解决SyntaxError: future feature annotations is not defined
本文链接: https://www.lsjlt.com/news/402305.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