草庐IT

garments

全部标签

python - 在 Sphinx 中,有没有办法在声明参数的同时记录参数?

我更喜欢在声明参数的同一行记录每个参数(根据需要)以便应用D.R.Y.如果我有这样的代码:deffoo(flab_nickers,#aseriesofundergarmentstoprocesshas_polka_dots=False,needs_pressing=False#Whetherthelistofgarmentsshouldallbepressed):...如何避免文档字符串中的参数重复,保留参数说明?我想避免:deffoo(flab_nickers,#aseriesofundergarmentstoprocesshas_polka_dots=False,needs_pre