+ 2
What is output of numpy.zero((2,3))
8 odpowiedzi
0
[[0,0,0],[0,0,0]]
0
It creates an 2x3 array and fill it with zeros
0
Yes ,I know but there I want space between each element and no "," as
[[ 0. 0. 0.]] # it is 1D ex
0
I hope u understand my problem
0
AARTI SHELAR
Its not a string it an Array and in arrays the spreator indicator is (,)
You can convert it to string and put space between them
0
res = ""
for x in array:
for y in x:
res += y + " "
res += "\n"
but in array you cant change (,) to space
thata how it work :)
0
No, u can check on other operating systems it gives as I'm mention above I mean without commas
Actually I'm solving problem and it easy but it give me error ??
0
AARTI SHELAR send me your problem, i'll be happy to help u with that