pyminifier代码混淆问题

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不会混淆{}中的变量名。

 

posted @ 2020-12-29 11:14  守望人间  阅读(403)  评论(0)    收藏  举报