How to get ° character in a string in python?

前端 未结 6 1063
南方客
南方客 2020-12-07 16:07

How can I get a ° (degree) character into a string?

6条回答
  •  执笔经年
    2020-12-07 16:44

    You can also use chr(176) to print the degree sign. Here is an example using python 3.6.5 interactive shell:

提交回复
热议问题