Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DA-Platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
文档服务地址:
http://47.92.0.57:3000/
周报索引地址:
http://47.92.0.57:3000/s/NruNXRYmV
Open sidebar
Berlin
DA-Platform
Commits
20d84e4c
Commit
20d84e4c
authored
Sep 29, 2020
by
李景熙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dataset结构变更以及添加变更状态函数、删除函数;
同时添加爬虫平台数据源
parent
67a1aa8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
pachong.py
DAPlatform/Dao/pachong.py
+22
-0
No files found.
DAPlatform/Dao/pachong.py
0 → 100644
View file @
20d84e4c
from
pymongo
import
MongoClient
host
=
'39.105.93.102'
# 服务器url
client
=
MongoClient
(
host
,
27017
)
# 服务器端口
db
=
client
[
'python-db'
]
traffic
=
db
.
Traffic
weather
=
db
.
Weather
airports
=
db
.
airports
# 查询traffic表中的所有数据并打印
def
get_item
():
try
:
result
=
traffic
.
find
({})
for
i
in
result
:
print
(
i
)
except
Exception
as
e
:
print
(
e
)
if
__name__
==
'__main__'
:
get_item
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment