【发布时间】:2014-05-06 19:06:13
【问题描述】:
我在阅读Google Java Style Guide 时遇到了这个:
String unitAbbrev = "μs"; Best: perfectly clear even without a comment.
String unitAbbrev = "\u03bcs"; // "μs" Allowed, but there's no reason to do this.
String unitAbbrev = "\u03bcs"; // Greek letter mu, "s" Allowed, but awkward and prone to mistakes.
String unitAbbrev = "\u03bcs"; Poor: the reader has no idea what this is.
我了解如何在eclipse等java编辑器中输入“\u03bcs”,但是具体如何输入“μ”???
从互联网来源复制和粘贴?
请赐教……
编辑:特别是说,我想用希腊字母输入一个句子,使用“\u03bcs”会有点愚蠢
【问题讨论】:
-
AltGr+m,u 在键盘布局I use.
标签: java unicode character-encoding