标签:keyword-argument
-
如何使用数据类创建“仅关键字”字段? - python
Since 3.0支持仅使参数关键字: class S3Obj: def __init__(self, bucket, key, *, storage_class='Standard'): self.bucket = bucket self.key = key self.storage_class = storage_class 如何使用 […]
Since 3.0支持仅使参数关键字: class S3Obj: def __init__(self, bucket, key, *, storage_class='Standard'): self.bucket = bucket self.key = key self.storage_class = storage_class 如何使用 […]