Java中叫什么docstrings?
-
03-10-2019 - |
题
在Java方法之前,我们有类似的东西:
/**
* Takes a number and returns its square root.
* @param x The value to square.
* @return The square root of the given number.
*/
public float getSqrt(float x) {
...
}
这是否有名字(例如Python中的Docstrings)?
其他提示
是的,叫做 Javadoc.
不隶属于 StackOverflow