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 880 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

    先修科目

    • 表格简介

     

    介绍

    你可以用积木轻松地编辑表格,比如添加行、删除行、修改项的值。

     

    添加行

    积木“添加到表格”会在表格最后添加一行,然后设置一整行的值或部分项的值。这个积木最多容纳12个值,所以用这个积木最多能填充前12项的值。

    注意:值的顺序一定要与表格中列的顺序匹配。空的输入框将被忽略。

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/b3bbbd73-7324-4eee-b1e7-8eaf660a31d4.gif" width="1000" style="border-radius: 5px; border: 1px solid #29622d;">

     

    插入行

    还可以在特定行号插入一行。为了给插入行腾出空间,现有的行将会下移。同样最多可以填充12项:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/697b16db-77c2-48d2-9008-7f226fac55ec.gif" width="990" style="border-radius: 5px; border: 1px solid #29622d;">

     

    替换一行

    如果你知道行号,就可以用如下积木替换一行的全部项。其他行不受影响。

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/d149ae4d-d019-4332-9342-eefa53f9de01.gif" width="980" style="border-radius: 5px; border: 1px solid #29622d;">

     

    替换一项

    有时你只需要替换一项,保持这一行的其他项不变。如果你知道这一项的行号和列名,就可以用这个积木替换其值:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/b9cb94ab-68f4-4d51-b092-6ce5beee4a8f.gif" width="880" style="border-radius: 5px; border: 1px solid #29622d;">

     

    更改项的值

    有些时候,你只想使某一项的当前值相对更改一定数量。比如,如果某人的生日刚过,你要让他的年龄加1。再比如,如果某人输了比赛,你要把他的分数减一些。下面这2个积木分别使项的值增加和减少:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/be1ce6f6-cc35-4d07-aee5-2e3e951ced3d.gif" width="880" style="border-radius: 5px; border: 1px solid #29622d;">

     

    按照行号删除行

    如果你知道要删除的那一行的行号,就可以用如下积木删除这一行。下面的行上移以填满空缺。

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/6e122323-3aca-4821-8822-0514f4fe98e4.gif" width="750" style="border-radius: 5px; border: 1px solid #29622d;">

     

    删除所有行

    你还可以删除所有行,即清空表格。列的结构不变:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/2ffa46bd-fddb-42a0-ba93-236e9fd23950.gif" width="750" style="border-radius: 5px; border: 1px solid #29622d;">

     

    查找列中的值并删除所在行

    有时候我们只想找到表格某一列的特定值并删除所在行。你可以用如下积木指定列以及在这一列要找的值。

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/fa2424e3-0718-41c7-a804-9df3c8e1ec65.gif" width="850" style="border-radius: 5px; border: 1px solid #29622d;">

     

    插入列

    还可以在表格中插入列。要指定插入列的名称和位置。所在位置的列以及右边的列都向右移一列。

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/b380a992-bc3d-4f10-b8ad-2624be036d99.gif" width="850" style="border-radius: 5px; border: 1px solid #29622d;">

    注意:这种操作不常用,因为正常情况下表格结构是固定的,我们只修改行和项。

     

    删除列

    还可以删除表格中的一整列,需要指定列名,英文字母不区分大小写。

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/80e778b6-3731-430a-884c-7b78f168b151.gif" width="850" style="">

     

    删除所有列

    如果你要重新定义整个表格,就可以删除所有列,然后重新添加列。

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/d59627c0-19ce-452d-971a-fdd1cc7ad9f1.gif" width="800" 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