>>>type([1,2,3,4,5,6,])<class'list'> >>>tupe(["hello","world",1,9]) <class'list'> >>>["hello","world",1,9,True,False] [''hello,'world',1,9,True,False] >>>type([1,2],[3,4],[True,False]) <class'list'> >>>嵌套列表 |
doraemon 发表于 2024-6-13 22:56
Python 3.12.4 (tags/v3.12.4:8e8a4ba, Jun 6 2024, 19:30:16) [MSC v.1940 64 bit (AMD64)] on win32
Ty ...
doraemon 发表于 2024-6-14 23:09
(1,2,3,4,5)
(1, 2, 3, 4, 5)
(1,'-1',True)
doraemon 发表于 2024-6-14 23:12
type((1,2,3))
type(1)
doraemon 发表于 2024-6-14 23:15
type((1))
(1+1)*2
doraemon 发表于 2024-6-14 23:39
int ;国际性组织(International organizations);整数(integer,编程语言中的数据类型);感叹词(inte ...
doraemon 发表于 2024-6-14 23:51
type([1])
int,float,bool,str,list,tuple
doraemon 发表于 2024-6-14 23:51
type([1])
int,float,bool,str,list,tuple
欢迎光临 firemail (http://firemail.wang:8088/) | Powered by Discuz! X3 |