TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What is the recommended style for python function defs w many args?

2 点作者 kortina大约 14 年前
Specifically, do you use multiple lines, and if so, are there any indentation best practices? Or do you always use a single line function definition?

2 条评论

andymoe大约 14 年前
I use multiple lines but if it's more than four or so args I usually think to myself. "Am I doing this wrong?" and try to refractor and do it 20% smarter.
评论 #2498278 未加载
HockeyBiasDotCo大约 14 年前
Multiple lines indented for me!