Skip to content

Commit

Permalink
Update popularity.py
Browse files Browse the repository at this point in the history
  • Loading branch information
qqhsx authored May 25, 2024
1 parent 04feef3 commit 9048cb5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions popularity.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import pywencai
res = pywencai.get(question='退市股票', loop=True)
res.to_csv('问财.csv', index=False, encoding='utf-8-sig')

# 定义变量
query = '退市股票'
filename = f'{query}.csv'

# 使用变量进行查询和保存结果
res = pywencai.get(question=query, loop=True)
res.to_csv(filename, index=False, encoding='utf-8-sig')

# 打印结果
print(res)

0 comments on commit 9048cb5

Please sign in to comment.