gpt4 book ai didi

concatenation - 跨多行使用字符串模板 "|"

转载 作者:行者123 更新时间:2023-12-04 16:30:29 25 4
gpt4 key购买 nike

有什么方法可以跨多行使用 | 字符串运算符?

使用经典的 CONCATENATE 标记,您可以进行如下分配:

CONCATENATE 'A rubber duck is a toy shaped like a stylized'
'duck, generally yellow with a flat base. It'
'may be made of rubber or rubber-like material'
'such as vinyl plastic.' INTO lv_variable SEPARATED BY space.

我还没有找到执行以下操作的有效方法:

lv_variable = |A rubber duck is a toy shaped like a stylized | &
|duck, generally yellow with a flat base. It | &
|may be made of rubber or rubber-like material | &
|such as vinyl plastic.|.

有没有办法做到这一点,或者在使用 | 运算符时您是否被限制在一行?

最佳答案

你可以这样做:

data : lv_variable type string.

lv_variable = |A rubber duck is a toy shaped like a stylized| &&
|duck, generally yellow with a flat base. It | &&
|may be made of rubber or rubber-like material | &&
|such as vinyl plastic.|.

write lv_variable.

关于concatenation - 跨多行使用字符串模板 "|",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47420676/

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