Class1__Python Basic Programming
date
Aug 30, 2023
slug
pythonbasic1
status
Published
tags
Python
summary
type
Post
Python Basic 1. Fundamental Elements
练习使用字符串
输出结果如下:
输出结果如下:
练习使用整数,浮点数
输出结果如下:
输出结果如下:
练习使用真假值和byte
输出结果如下:
练习使用list
输出结果如下:
练习使用字典(Dictionary)
输出结果如下:
练习使用bytes
输出结果如下:
输出结果如下:
输出结果如下:
Python Basic 2. Variable assign
输出结果如下:
输出结果如下:
输出结果如下:
4626797888
输出结果如下:
4543487792
输出结果如下:
输出结果如下:
Python Basic 3. Control Condiction
练习使用 if
输出结果如下:
over 0
练习使用 if else
输出结果如下:
练习使用 if elif
输出结果如下:
综合练习
输出结果如下:
输出结果如下:
number > 0
输出结果如下:
number > 0
输出结果如下:
number > 0
Python Basic 4. loop and iteration
练习使用loop
输出结果如下:
练习使用While Loop
输出结果如下: