Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道用单引号括起来的字符串可以包含双引号,反之亦然,但是字符串可以同时包含两者吗?例如,字符串:
How do you say, "Where's the bathroom?" in Spanish?
已经很长时间了,快速的谷歌搜索没有帮助。
"How do you say, ""Where's the bathroom?"" in Spanish?"
双引号有效。
反斜杠字符应该可以用来转义嵌入的引号或撇号,例如 \"