Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zzsn_spider
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
王景浩
zzsn_spider
Commits
e40d0f02
提交
e40d0f02
authored
2月 05, 2024
作者:
薛凌堃
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
02/05
上级
db863d92
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
6 行增加
和
6 行删除
+6
-6
getcode.py
comData/BaseInfo_qcc/getcode.py
+5
-5
europa.py
comData/dingzhi/europa.py
+0
-0
test.py
test.py
+1
-1
没有找到文件。
comData/BaseInfo_qcc/getcode.py
浏览文件 @
e40d0f02
...
@@ -2,10 +2,10 @@ import pandas as pd
...
@@ -2,10 +2,10 @@ import pandas as pd
# from pandas import DataFrame as df
# from pandas import DataFrame as df
import
pymysql
import
pymysql
cnx
=
pymysql
.
connect
(
host
=
'114.116.44.11'
,
user
=
'caiji'
,
password
=
'f7s0&7qqtK'
,
db
=
'
dbScore
'
,
charset
=
'utf8mb4'
)
cnx
=
pymysql
.
connect
(
host
=
'114.116.44.11'
,
user
=
'caiji'
,
password
=
'f7s0&7qqtK'
,
db
=
'
clb_project
'
,
charset
=
'utf8mb4'
)
import
urllib3
import
urllib3
urllib3
.
disable_warnings
(
urllib3
.
exceptions
.
InsecureRequestWarning
)
urllib3
.
disable_warnings
(
urllib3
.
exceptions
.
InsecureRequestWarning
)
df_all
=
pd
.
read_excel
(
'D:
\\
企业数据
\\
数据组提供
\\
第五批专精特新企业名单汇总_修订版_20240102
.xlsx'
,
dtype
=
str
)
df_all
=
pd
.
read_excel
(
'D:
\\
企业数据
\\
数据组提供
\\
2023专精特新企业名单_20240205
.xlsx'
,
dtype
=
str
)
list_com
=
[]
list_com
=
[]
for
num_df
in
range
(
len
(
df_all
)):
for
num_df
in
range
(
len
(
df_all
)):
com_name
=
str
(
df_all
[
'企业名称'
][
num_df
])
com_name
=
str
(
df_all
[
'企业名称'
][
num_df
])
...
@@ -26,5 +26,5 @@ for num_df in range(len(df_all)):
...
@@ -26,5 +26,5 @@ for num_df in range(len(df_all)):
print
(
f
'【{num_df}/{len(df_all)}】==={com_name}未找到'
)
print
(
f
'【{num_df}/{len(df_all)}】==={com_name}未找到'
)
social_code
=
''
social_code
=
''
df_all
[
'信用代码'
][
num_df
]
=
str
(
social_code
)
df_all
[
'信用代码列'
][
num_df
]
=
str
(
social_code
)
df_all
.
to_excel
(
'D:
\\
企业数据
\\
数据组提供
\\
第五批专精特新企业名单汇总_修订版_20240102.xlsx'
,
index
=
False
)
df_all
.
to_excel
(
'D:
\\
企业数据
\\
数据组提供
\\
名单整合.xlsx'
,
index
=
False
)
\ No newline at end of file
\ No newline at end of file
comData/dingzhi/europa.py
浏览文件 @
e40d0f02
差异被折叠。
点击展开。
test.py
浏览文件 @
e40d0f02
...
@@ -158,7 +158,7 @@ for data in datas:
...
@@ -158,7 +158,7 @@ for data in datas:
summary
=
data
[
'contentForeign'
]
summary
=
data
[
'contentForeign'
]
dic_info
=
{
dic_info
=
{
'title'
:
title
,
'title'
:
title
,
'summary'
:
summary
,
#
'summary':summary,
'contentWithTag'
:
contentWithTag
'contentWithTag'
:
contentWithTag
}
}
headers
=
{
headers
=
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论