Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. 知识库
  3. 二维积木
  4. 合并文本运算

合并文本运算

Scheduled Pinned Locked Moved 二维积木
1 Posts 1 Posters 621 Views
  • 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 Offline
    C Offline
    creaticodeteacher2-mail
    wrote on last edited by admin
    #1

     

    先修科目

    • 使用角色

     

    介绍

    有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;">

    1 Reply Last reply
    0

    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
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode