gpt4 book ai didi

.net - 如何在vb net中设置多行字符串变量

转载 作者:行者123 更新时间:2023-12-01 08:06:00 25 4
gpt4 key购买 nike

我需要在变量中存储多行字符串:

dim str as string = "
some words
some words
some
words
"

如何?

最佳答案

无需使用类来插入新行,您可以这样做:

Dim Logo As String= <a><![CDATA[
___ ___ _ _ _ _ _
| \/ | | || | (_)| |(_)
| . . | _ _ | || |_ _ | | _ _ __ ___
| |\/| || | | || || __|| || || || '_ \ / _ \
| | | || |_| || || |_ | || || || | | || __/
\_| |_/ \__,_||_| \__||_||_||_||_| |_| \___|


_____ _ _
/ ___|| | (_)
\ `--. | |_ _ __ _ _ __ __ _
`--. \| __|| '__|| || '_ \ / _` |
/\__/ /| |_ | | | || | | || (_| |
\____/ \__||_| |_||_| |_| \__, |
__/ |
|___/
]]></a>.Value

Console.WriteLine(Logo)

关于.net - 如何在vb net中设置多行字符串变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17001882/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com