首页 > 其他 > 详细

CS50 2019

时间:2020-06-08 17:44:53      阅读:48      评论:0      收藏:0      [点我收藏+]

Lecture 0 - Computational Thinking, Scratch

 

input -> [ black box ] -> output

 

How to represent input/output information?

  • represent number
  • represent characters/letters:
    • ASCII (8 bits)

A:65(01000001) 

    • Unicode(a superset of ASCII, 8/16/24/32 bits)

      emoji ?? :128514(11111011000000010)

 

  • represent colors
    • RGB: every dot in an image is stored using three value

      a shade of yellow: 72 73 33

      every dot in an image is used three value

      • animated GIF/videos

multiple images in the same file, one image fly past after another to create an illusion of moving

  • represent music

      maybe the note, the duration, the value

 

input -> [ algorithms ] -> output

The algorithm is a step-by-step process for solving a problem.

 

  • functions: verbs or actions to tell computers what to do
  • conditions
  • Boolean expressions: one or zero questions
  • loops
  • variables
  • threads
  • events

 

CS50 2019

原文:https://www.cnblogs.com/lichtung/p/13066460.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!