Skip to content

手工编译 quick-sort 到 python #76

Answered by UltimatePea
nobodxbodon asked this question in Q&A
Discussion options

You must be logged in to vote

转译为(这里“尾”的语义是不同于yuyan代码吗?否则有bug,头元素缺失):

确实有bug,应该把头加进去

另外,强烈建议尽早整理报错机制和改进反馈。本想如下加个打印输出看快排后数列内容,结果报错超长完全看不清:

是的,我们有很多开发工作都因为运行速度缓慢而延后了,报错的话只要看前几行加中间几行就行,开发阶段报错机制需要详细一点因为通常你搞不清楚是编译器出错了还是程序写错了

本想如下加个打印输出看快排后数列内容,结果报错超长完全看不清

打印行只能打印字符串,我们还没做interface之类的功能,所以要把数列转换成字符串之后才能打印

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by UltimatePea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants