line.py

def line(x, y):
return [
(x * n) // y - (x * (n - 1)) // y
for n in range(1, y + 1)
]
添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论