Skip to content

Conversation

ooooo-create
Copy link
Collaborator

@ooooo-create ooooo-create commented Oct 29, 2023

@paddle-bot
Copy link

paddle-bot bot commented Oct 29, 2023

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6274.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:飞桨文档预览工具

@@ -99,7 +99,7 @@ def create_and_write_file_cn(self, save_dir, language):
f.write(define_path_text)

if len(self.parameter_dict) != 0:
parameters_text = f'参数\n' f':::::::::::::::::::::'
parameters_text = '参数\n' ':::::::::::::::::::::'
Copy link
Member

@SigureMo SigureMo Oct 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同行不要使用隐式字符串拼接,可以使用 +,或者直接拼接在一起

@@ -328,7 +330,9 @@ def create_and_write_file_cn(self, save_dir, language):
f.write(fun_note_text)

if len(fun_infor['parameter']) != 0:
parameters_text = "**参数**\n" "\'\'\'\'\'\'\'\'\'\'\'\n"
parameters_text = (
"**参数**\n" + "\'\'\'\'\'\'\'\'\'\'\'\n"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"\'" -> "'"

这代码看着好蠢,下同

Copy link
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTMeow

@SigureMo SigureMo merged commit 3f05c4a into PaddlePaddle:develop Oct 29, 2023
@sunzhongkai588 sunzhongkai588 added the HappyOpenSource 快乐开源活动issue与PR label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Docathon]docs 代码风格检查工具对齐 Paddle docs 代码风格检查工具对齐 Paddle
3 participants