| 12345678910111213141516171819 |
- import pandas as pd
- # 读取Excel文件中的视觉配置
- df = pd.read_excel('d:/CocosGame/Pong/assets/resources/data/excel/方块武器配置/方块武器配置表.xlsx', sheet_name='视觉配置')
- # 检查sharp_carrot行数据
- row = df.iloc[1] # sharp_carrot是第二行
- print('sharp_carrot行数据:')
- print(row)
- print('\n拖尾特效字段检查:')
- for field in ['拖尾特效', 'trailEffect', '尾迹特效', '特效']:
- has_field = field in row
- value = row.get(field, '不存在') if has_field else '不存在'
- print(f'{field}: 存在={has_field}, 值={value}')
- # 检查pandas是否正确读取了数据
- print('\n拖尾特效列的所有值:')
- print(df['拖尾特效'])
|