擅长:python、mysql、java
<pre><code>array = "/home/ask/Git/Zeeguu-API/zeeguu_core/user_statistics/main.py"
list1= array.split("/")
list_without_space = []
for element in list1:
if element.strip():
list_without_space.append(element)
print(list_without_space)
</code></pre>