PyCharm 和 f 字符串 [英] PyCharm and f-strings

查看:37
本文介绍了PyCharm 和 f 字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是最新的稳定版 PyCharm 2016.1.4 和 Python 3.6a1.每当我使用f-strings"(

PyCharm 还不支持文字字符串插值吗?或者,我应该单独启用或配置它吗?

解决方案

PyCharm 2016.3,相关功能请求:

请注意,稳定版 3.6 计划于 12 月发布.

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?

解决方案

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

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

这篇关于PyCharm 和 f 字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆