Navigation

    CreatiCode Scratch Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    合并文本运算

    二维积木
    1
    1
    151
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      creaticodeteacher2-mail last edited by admin

       

      先修科目

      • 使用角色

       

      介绍

      有2个积木把文本合并成更长的文本:“连接( )和( )”、“将( ) ( ) ( ) ( ) ( ) ( )通过( )连接”。


       

      积木:“连接( )和( )”

      这个积木把两个输入框中的数字、字母或者其他任意字符串合并在一起。

      注意:这个积木不会在输入文本之间添加空格。


       

      积木:“将( ) ( ) ( ) ( ) ( ) ( )通过( )连接”

      这个积木把最多6个输入值合并成一个长文本,并在这些输入值之间插入最后一个输入框的值。如果6个输入框中有空的,就忽略空的。

      注意:默认情况下,最后一个输入框中是一个空格。汉语文字之间没有空格,所以在使用时要根据情况删除该空格。

       

      用变量作为输入值

      在这2个积木中,你可以用变量作为输入值:

      1 Reply Last reply Reply Quote 0
      • First post
        Last post