展开全部
你说bai的意思:du
.net中:string query = @"SELECT foo, bar
FROM table
WHERE id = 42";
php中<?php
$str = <<
Example of string
spanning multiple lines
using nowdoc syntax.
EOD;
echo <<
My name is "$name". I am printing some $foo->foo.
Now, I am printing some {$foo->bar[1]}.
This should not print a capital 'A': \x41
EOT;
?>
这种跨行zhi书写,不用dao在每句话的后面添加内+
groovy:assert '''hello,
world''' == 'hello,\nworld'
//triple-quotes for multi-line strings, adds '\n' regardless of host system
assert 'hello, \
world' == 'hello, world' //backslash joins lines within string
java中有没有?容没有