我熟悉使用两行代码记录Python函数的参数,如下所示:
def get_market_history(self, market, count):
"""
Used to retrieve the latest trades that have occured for a
specific market.
/market/getmarkethistory
:param market: String literal for the market (ex: BTC-LTC)
:type market: str
但是我知道对于简单类型,可以在:param
行中包含类型,因此只需要一行而不是两行。但我忘了它的语法,希望能举个例子
:param str sender: The person sending the message
来自documentation相关问题 更多 >
编程相关推荐