python入门

python入门

if  else  循环语句

View Code

while 循环语句

View Code

and  操作符   等同于 JS  &&

View Code

random模块

randint()  函数 ,返回一个随机整数

用法

View Code

Python 定义了一些标准类型,用于存储各种类型的数据。

Python有五个标准的数据类型:

  • Numbers(数字)
  • String(字符串)
  • List(列表)
  • Tuple(元组)
  • Dictionary(字典)
原文地址:https://www.cnblogs.com/lvlisn/p/14869493.html