合并文本运算
-
先修科目
介绍
有2个积木把文本合并成更长的文本:“连接( )和( )”、“将( ) ( ) ( ) ( ) ( ) ( )通过( )连接”。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/14c50103-7399-4d71-b343-87ec6a4d131d.png" width="700" style="">
积木:“连接( )和( )”
这个积木把两个输入框中的数字、字母或者其他任意字符串合并在一起。
注意:这个积木不会在输入文本之间添加空格。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/88de0a3e-e655-4020-b213-72bd38483c6f.gif" width="700" style="border-radius: 5px; border: 1px solid #29622d;">
积木:“将( ) ( ) ( ) ( ) ( ) ( )通过( )连接”
这个积木把最多6个输入值合并成一个长文本,并在这些输入值之间插入最后一个输入框的值。如果6个输入框中有空的,就忽略空的。
注意:默认情况下,最后一个输入框中是一个空格。汉语文字之间没有空格,所以在使用时要根据情况删除该空格。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/440f17b7-d3e6-4f8a-a11c-e59292b5fb90.gif" width="700" style="border-radius: 5px; border: 1px solid #29622d;">
用变量作为输入值
在这2个积木中,你可以用变量作为输入值:
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/5d12e1e2-e066-44fd-81d7-b03fa7157ddc.gif" width="700" style="border-radius: 5px; border: 1px solid #29622d;">
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login