# While reading some code you come across the following line:
# numbers[0]+=1
# What data types could the variable numbers possibly be?
# set
# Series
# list
# dict
import pandas as pd
a={0:1,2:3}
b=[1,6,4,5]
c=(1,6,4,5)
d=pd.Series(b)
#------------------------------------
try:
a[0]+=1
print(a[0])
except:
print("faild")
#------------------------------------
try:
b[0]+=1
print(b[0])
except:
print("faild")
#------------------------------------
try:
c[0]+=1
print(c[0])
except:
print("faild")
#------------------------------------
try:
d[0]+=1
print(d[0])
except:
print("faild")



雷达卡




京公网安备 11010802022788号







