有没有像Python的repr一样工作的Java方法?例如,假设该函数名为repr,
"foo\n\tbar".repr()
会回来的
"foo\n\tbar"
不
foo bar
至于toString.
python java repr
java ×1
python ×1
repr ×1