python
import pandas as pd
# 读取asc文件,指定空格为分隔符
df = pd.read_csv('out_view2.asc', sep=' ', header=None)
# 去掉空列
df = df.dropna(how='all', axis=1)
# 将数据保存到Excel文件
df.to_excel('out_view2.xlsx', index=False, header=False)
效果图
