我有以下的(顯然簡體)類 class A(object)
def __init__(self, a):
self.a = a
self.b = 'b'
# Other class attributes are added
class B(list):
"""
Some customization of this class..
我正在製作一個函數,它將一個枚舉作爲一個參數包含每年的每個月。我沒有一個功能做這個工作,但那不是主意。 的功能應該與switch語句工作,所以如果我使用九月,函數應該返回9,如果我輸入可它應該返回5等 我使用的是IBM斯威夫特沙盒它給我下面的錯誤: /swift-execution/Sources/main.swift:129:1: warning: result of call tonumero