本文介绍了单引号字符串与双引号字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么单引号字符串需要转义字符,而双引号字符串则不需要转义字符?
Why do we need an escape character for single quoted string, but not for a double quoted string?
c>也需要转义:For example " inside a " delimited string literal need to be escaped as well:
a = "And he said: \"What a nice day\"."这篇关于单引号字符串与双引号字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!