Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

汇报一个小小的BUG, #2

Open
TutorDing opened this issue Mar 28, 2020 · 4 comments
Open

汇报一个小小的BUG, #2

TutorDing opened this issue Mar 28, 2020 · 4 comments

Comments

@TutorDing
Copy link

53行,写入文件,
df_code.to_csv(f'{self.output_dir}/{row["code"]}.{row["code_name"]}.csv'
当股票代码为*ST开头的时候, 会报错,去掉{row["code_name"]}之后正常。

@sealot
Copy link

sealot commented Mar 30, 2020

c_name=row["code_name"].replace("*","★")
df_code.to_csv(f'{self.output_dir}/{row["code"]}.{c_name}.csv', index=False)
发现同样问题,window系统,是文件名不能有*,去掉*就没问题了

@5118Python
Copy link

#8

@hilqiqi0
Copy link

hilqiqi0 commented Apr 4, 2020

带*的都不要了

43 +             if "*" in row["code_name"]: 

44 +               continue

@284324096
Copy link

{row["code_name"]}.csv 改为{row["code_name"].replace("*","x")}.csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants