Using Python 3 new formatting syntax, how can I print just the sign of a number?

前端 未结 0 1532
挽巷
挽巷 2021-02-03 23:34

So, I know how to get number as a string with it\'s sign using

    f\'{my_num:+}\'

But how do I get just t

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