Write a NumPy program to split the element of a given array to multiple lines
- برمجة بايثون
- 2021-09-13
- mhanasmh00489829403
الأجوبة
import numpy as np
x = np.array(['Python\Exercises, Practice, Solution'], dtype=np.str)
print("Original Array:")
print(x)
r = np.char.splitlines(x)
print(r)
Sample Input:
['Python\\Exercises, Practice, Solution']
Sample Input:
(['Python\Exercises, Practice, Solution'], dtype=np.str)
Sample Output:
[list(['Python\\Exercises, Practice, Solution'])]
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال