“两者之间的区别”和' [英] Difference between " and '

查看:92
本文介绍了“两者之间的区别”和'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




有人能告诉我单引号和双引号之间的区别

引用吗?


谢谢

解决方案

b8 ** *****@yahoo.com 写道:



有人能告诉我单引号和双引号之间的区别/>引用?



没有。除了在双引号字符串中,单引号不要
必须被转义,反之亦然,有时两种形式中的一种可以节省你

一些反斜杠:


那是我的房子 ==''那是'我的房子''

"你说:\Hello!\\"" ==''你说:'你好''''

-

Benjamin Niemann

电邮:粉红色at odahoda dot de

WWW: http://www.odahoda.de/ br />


b8 ******* @ yahoo.com 写道:



有人能告诉我单引号和双引号之间的区别吗?



ord("''") - ord(''"'')






或提出有意义的问题...



b8*******@yahoo.com 写道:



有人能告诉我单引号和双引号之间的区别吗?

ks




请解决xxx之间的争议。和xxx。


在牛津有一个人决定了这些事情,但我听说他好了b $ b发疯了。


Hi,

Can someone tell me the difference between single quote and double
quote?

Thanks

解决方案

b8*******@yahoo.com wrote:

Hi,

Can someone tell me the difference between single quote and double
quote?


There is none. Except that in a double quoted string, single quotes don''t
have to be escaped and vice versa, sometimes one of the two forms saves you
some backslashes:

"That''s my house" == ''That\''s my house''
"You say: \"Hello\"" == ''You say: "Hello"''
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/


b8*******@yahoo.com wrote:

Hi,

Can someone tell me the difference between single quote and double
quote?



ord("''") - ord(''"'')


5

or ask a meaningful question ...



b8*******@yahoo.com wrote:

Hi,

Can someone tell me the difference between single quote and double
quote?

Thanks



And please settle the dispute between "xxx". And "xxx".

There was a fellow at Oxford who decided these things but I hear he
went mad.


这篇关于“两者之间的区别”和'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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