test_trail_effect.py 691 B

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