الأجوبة
import numpy as np
x = np.repeat(3, 4)
print(x)
x = np.array([[1,2],[3,4]])
print(np.repeat(x, 2))
Sample Output:
[3 3 3 3] [1 1 2 2 3 3 4 4]
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال
import numpy as np
x = np.repeat(3, 4)
print(x)
x = np.array([[1,2],[3,4]])
print(np.repeat(x, 2))
Sample Output:
[3 3 3 3] [1 1 2 2 3 3 4 4]
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال