PyCharm and f-strings

╄→гoц情女王★ 提交于 2019-12-07 04:38:18

问题


I am using the latest stable PyCharm 2016.1.4 and Python 3.6a1. Whenever I use the "f-strings" (PEP-498) PyCharm is complaining about f being an unresolved reference:

Is the literal string interpolation not supported by PyCharm yet? Or, should I have enabled or configured it separately?


回答1:


The Literal String Interpolation is now supported in PyCharm 2016.3, the relevant feature request:

  • PY-18972 implement support for PEP 498 (f-strings)

Note that the stable 3.6 is scheduled to be released in December.



来源:https://stackoverflow.com/questions/38215059/pycharm-and-f-strings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!