f-string debuging shorthand in python3.6

后端 未结 0 820
野性不改
野性不改 2020-12-15 04:40

The following works in python 3.7+

a = 1.5
print(f\'{a=}\')

in Python3.6, it is equivalent to



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题