小编Che*_*che的帖子

python中变量前的单星号和双星号有什么区别?

data = pd.read_csv("customers.csv")

print("Wholesale customers dataset has {} samples with {} features each."
      .format(*data.shape))
Run Code Online (Sandbox Code Playgroud)

在此之后,我得到了数据的维数。但我想知道 Python 中变量前星号的用法是什么。

python variables

5
推荐指数
1
解决办法
800
查看次数

标签 统计

python ×1

variables ×1