【行易少儿编程】4.Python 顺序结构 Sequence Structure

  • 顺序结构 Sequence Structure 代码按照编写的顺序,自上而下逐行运行。程序框图如下图所示。

【行易少儿编程】4.Python 顺序结构 Sequence Structure

  • 写代码演示 Code Demo

【行易少儿编程】4.Python 顺序结构 Sequence Structure

  • 课堂提问:  上述代码 len(str_tip) 的作用是什么?print("-"*len(str_tip)) 的作用是什么?