Matrice de copiere – și ne copiere în Python
|
Acum, o surpriză pentru cei neatenți. Să presupunem că scriu acest cod: stooges = np.array([‘Larry’,’Beavis’,’Moe’]) funny_people = stooges stooges[1] = ‘Curly’ print(„The stooges are: {}.”.format(stooges)) print(„The funny people are: {}.”.format(funny_people)) Gândiți un moment și preziceți care credeți că va fi … Citeşte mai mult
