问题

pycharm 在注释时,提示Triple double-quoted strings should be used for docstrings.
意思是:文档注释,应该用三个双引号。
也就是,它更推荐用双引号注释,而不是单引号
python-pycharm-Triple double-quoted strings should be used for docstrings.

解决方案

自动解决

将光标放在单引号上,出现小灯,再按下,出现“convert …”,点击即可自动转为双引号
python-pycharm-Triple double-quoted strings should be used for docstrings.
python-pycharm-Triple double-quoted strings should be used for docstrings.

手动解决

手动将单引号改为双引号

相关文章:

  • 2022-12-23
  • 2021-05-20
  • 2022-01-03
  • 2021-09-10
  • 2022-12-23
  • 2022-01-11
猜你喜欢
  • 2021-12-18
  • 2021-10-26
  • 2021-12-17
  • 2021-09-12
  • 2021-05-31
  • 2021-11-05
相关资源
相似解决方案