whyscience/CS231n-Note-Translation_CN

CS231n 1:Python Numpy教程.md

Closed this issue · 2 comments

pivot = arr[len(arr) / 2] is wrong

Please fix as pivot = arr[len(arr) // 2]

I dont think it is necessary to do so.
This repo is based on old origin class tutorial which used Python 2. See here. However, the up-to-date tutorial uses Python 3. The / operator is different in those 2 versions. Refer to this.

Oic