python 参数传递
2021-11-17 本文已影响0人
hehehehe
In [139]: def a(df):
...: print(id(df))
...: df=df.drop(index = 0)
...: print(id(df))
...: print(df.shape)
In [140]: id(df)
Out[140]: 140489669776400
In [142]: a(df)
140489669776400
140489636407248
(99, 100)