shouwangrenjian

pyminifier2.1,2.2不支持python3.6的 f-string 

>>> name = "Fred"
>>> f"He said his name is {name}."
\'He said his name is Fred.\'
>>> width = 10
>>> precision = 4
>>> value = decimal.Decimal("12.34567")
>>> f"result: {value:{width}.{precision}}"  # nested fields
\'result:      12.35\'

pyminifier不会混淆{}中的变量名。

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-10-22
  • 2021-12-12
  • 2021-10-22
  • 2021-08-06
  • 2021-11-24
  • 2022-12-23
  • 2021-11-01
猜你喜欢
  • 2021-08-16
  • 2021-05-12
  • 2021-09-02
  • 2021-09-29
  • 2021-08-07
相关资源
相似解决方案