python笔记--数据类型,python的数据类型,http://www


http://www.runoob.com/python/python-tutorial.html 菜鸟教程
1.数字,可以直接定义,a = 18
2.字符串,a = ‘helloworld‘
3.列表,list = [1,2,3,4,‘aa‘]
4.元组 ,元组的元素不能修改,tup = (‘aaa‘,1,2,3,‘ddd‘)
5.字典,键值对,d = {key1 : value1, key2 : value2 },键是唯一的

python笔记--数据类型

评论关闭