random.seed(1001) 在 git diff 中是什么?

huangapple go评论66阅读模式
英文:

What are @@ -20,8 +23,8 @@ random.seed(1001) in git diff?

问题

@@符号代表Git差异的标记。数字表示代码中的行号。

英文:

To check differences I run git diff:

(reg37) C:\Users\banikr\PycharmProjects\Registration\registration>git diff master origin/master
diff --git a/mainfile.py b/mainfile.py
index 94a5113..4b514f1 100644
--- a/mainfile.py
+++ b/mainfile.py
@@ -9,6 +9,9 @@ import matplotlib as mtl
:

What do the @@ signs mean?
Do the numbers indicate the line number of the code?

答案1

得分: 1

这是描述变更的标准GNU格式链接:
https://www.gnu.org/software/diffutils/manual/html_node/Detailed-Unified.html#Detailed-Unified

您可以参考以下响应以获取更多信息:
https://stackoverflow.com/a/24456418/9361998

英文:

It's a standard GNU format for describe change:
https://www.gnu.org/software/diffutils/manual/html_node/Detailed-Unified.html#Detailed-Unified

You can refer to the following response for further information:
https://stackoverflow.com/a/24456418/9361998

huangapple
  • 本文由 发表于 2023年3月4日 00:57:41
  • 转载请务必保留本文链接:https://go.coder-hub.com/75629884.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定