1. According to Google"s official machine learning course code, there is no problem when executing in an interactive environment, but an error will be reported when executed in vscode;
the 2.python code is as follows:
import numpy as np
np.random.permutation(10)
this code outputs the following result on the line of the interactive environment:
vscode:
do any code friends know what"s going on? Ask for advice!