摄氏度的Unicode字符? [英] Unicode character for Celsius degree?

查看:527
本文介绍了摄氏度的Unicode字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我需要在 System.out.println 中打印,那么Celsius和Fahrenheit的 unicode 字符是什么。

What is the unicode character for Celsius and Fahrenheit if I need to print it in System.out.println.

推荐答案

查看 Unicode字符表并搜索度数符号:


Degree Sign°

Degree Sign °

Unicode编号 U + 00B0

Unicode number U+00B0







public static void main(String[] args) {
    final String DEGREE  = "\u00b0";
    System.out.println(DEGREE);
}

这篇关于摄氏度的Unicode字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆