首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >W: Lint/ void :用于void上下文的文字<-DOC

W: Lint/ void :用于void上下文的文字<-DOC
EN

Stack Overflow用户
提问于 2020-09-09 11:39:53
回答 1查看 297关注 0票数 0

守则如下:

代码语言:javascript
复制
def stratified_subsampling(arr, n_strata, n_points, srand)
  <<-DOC
  The function samples "n_points" points from an array "arr".
  It preserves the original distribution of the data. "n_strata"
  is the number of strata to devide the values in. Have to find a
  trade-off for this value, but I think that as a rule of thumb,
  10 bins should be fair enough in most cases.
  DOC

  vs = arr.sort
...

鲁博克说:

代码语言:javascript
复制
W: Lint/Void: Literal <<-DOC used in void context.
  <<-DOC
  ^^^^^^   

我不明白这意味着什么,我应该如何解决它。

谢谢!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-09-09 11:43:59

这意味着您这里有一个字符串文本,您完全不使用它。它需要是字符串文字吗?一个评论应该是很好的。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63810893

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档