提交 0239c7a2 创建 作者: 王晓庆's avatar 王晓庆

2

上级 da5dbb2a
流水线 #118275 已失败 于阶段
用时 24 秒
...@@ -97,11 +97,11 @@ case4: ...@@ -97,11 +97,11 @@ case4:
- export LC_ALL="C.UTF-8" - export LC_ALL="C.UTF-8"
- python3 testcases.py ci_test 4 - python3 testcases.py ci_test 4
- cat user_output4.txt - cat user_output4.txt
# - diff output4.txt user_output4.txt -b -B -y -i -W 100 - diff output4.txt user_output4.txt -b -B -y -i -W 100
- echo -e "\n*******************************************\nexec-score 100\n*******************************************\n" - echo -e "\n*******************************************\nexec-score 100\n*******************************************\n"
artifacts: # artifacts:
paths: # paths:
- user_output4.txt # - user_output4.txt
only: only:
- master - master
allow_failure: false allow_failure: false
......
...@@ -89,7 +89,7 @@ if __name__ == '__main__': ...@@ -89,7 +89,7 @@ if __name__ == '__main__':
# csv方便用户查看 # csv方便用户查看
df.to_csv(user_output_csv_file, index=True, header=True, encoding='gb18030') df.to_csv(user_output_csv_file, index=True, header=True, encoding='gb18030')
# txt用于和答案模板比较 # txt用于和答案模板比较
df.to_csv(user_output_txt_file, index=False, header=True, encoding='UTF-8') df.to_csv(user_output_txt_file, index=False, header=True, encoding='utf_8_sig')
# 连接用完后记得关闭以释放资源 # 连接用完后记得关闭以释放资源
conn.close() conn.close()
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论