Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cybertron
Project
Project
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
Open sidebar
alpha
cybertron
Commits
079c1fa9
Commit
079c1fa9
authored
Apr 26, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a
parent
1655c72c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
35 deletions
+46
-35
workspace.xml
.idea/workspace.xml
+40
-35
auto_comment1.py
auto_comment1.py
+6
-0
No files found.
.idea/workspace.xml
View file @
079c1fa9
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"fd1f0b61-1139-44e5-87e7-f8b86ff52376"
name=
"Default Changelist"
comment=
""
>
<list
default=
"true"
id=
"fd1f0b61-1139-44e5-87e7-f8b86ff52376"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/auto_comment1.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/auto_comment1.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/auto_comment1.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/auto_comment1.py"
afterDir=
"false"
/>
</list>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
...
@@ -44,7 +43,7 @@
...
@@ -44,7 +43,7 @@
<entry
key=
"comment"
value=
"59"
/>
<entry
key=
"comment"
value=
"59"
/>
<entry
key=
"dummy"
value=
"7"
/>
<entry
key=
"dummy"
value=
"7"
/>
<entry
key=
"guanshui"
value=
"2"
/>
<entry
key=
"guanshui"
value=
"2"
/>
<entry
key=
"py"
value=
"7
548
"
/>
<entry
key=
"py"
value=
"7
627
"
/>
<entry
key=
"txt"
value=
"86"
/>
<entry
key=
"txt"
value=
"86"
/>
<entry
key=
"xuqiu"
value=
"223"
/>
<entry
key=
"xuqiu"
value=
"223"
/>
</counts>
</counts>
...
@@ -52,7 +51,7 @@
...
@@ -52,7 +51,7 @@
<usages-collector
id=
"statistics.file.types.edit"
>
<usages-collector
id=
"statistics.file.types.edit"
>
<counts>
<counts>
<entry
key=
"PLAIN_TEXT"
value=
"377"
/>
<entry
key=
"PLAIN_TEXT"
value=
"377"
/>
<entry
key=
"Python"
value=
"7
548
"
/>
<entry
key=
"Python"
value=
"7
627
"
/>
</counts>
</counts>
</usages-collector>
</usages-collector>
</session>
</session>
...
@@ -123,11 +122,11 @@
...
@@ -123,11 +122,11 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/auto_click1.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_click1.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
100
"
>
<state
relative-caret-position=
"
225
"
>
<caret
line=
"
33"
column=
"28"
lean-forward=
"true"
selection-end-line=
"94
"
/>
<caret
line=
"
15"
column=
"108"
selection-start-line=
"15"
selection-start-column=
"90"
selection-end-line=
"15"
selection-end-column=
"108
"
/>
<folding>
<folding>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
<marker
date=
"1556
188717000"
expanded=
"true"
signature=
"1265:1454
"
ph=
"..."
/>
<marker
date=
"1556
240879000"
expanded=
"true"
signature=
"1310:1499
"
ph=
"..."
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
...
@@ -160,8 +159,8 @@
...
@@ -160,8 +159,8 @@
<file
pinned=
"false"
current-in-tab=
"true"
>
<file
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/auto_comment1.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_comment1.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
99
"
>
<state
relative-caret-position=
"1
85
"
>
<caret
line=
"
15"
column=
"96"
selection-start-line=
"15"
selection-start-column=
"96"
selection-end-line=
"15"
selection-end-column=
"96
"
/>
<caret
line=
"
59"
lean-forward=
"true"
selection-start-line=
"59"
selection-end-line=
"59
"
/>
<folding>
<folding>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
</folding>
</folding>
...
@@ -227,7 +226,7 @@
...
@@ -227,7 +226,7 @@
<entry
file=
"file://$PROJECT_DIR$/auto_request.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_request.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"194"
>
<state
relative-caret-position=
"194"
>
<caret
line=
"1
73"
column=
"4"
selection-start-line=
"173"
selection-start-column=
"4"
selection-end-line=
"173"
selection-end-column=
"4
"
/>
<caret
line=
"1
47"
column=
"32"
selection-start-line=
"147"
selection-start-column=
"32"
selection-end-line=
"147"
selection-end-column=
"32
"
/>
<folding>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
</folding>
...
@@ -307,14 +306,14 @@
...
@@ -307,14 +306,14 @@
<option
value=
"$PROJECT_DIR$/offline_comment.py"
/>
<option
value=
"$PROJECT_DIR$/offline_comment.py"
/>
<option
value=
"$PROJECT_DIR$/testss.py"
/>
<option
value=
"$PROJECT_DIR$/testss.py"
/>
<option
value=
"$PROJECT_DIR$/test.py"
/>
<option
value=
"$PROJECT_DIR$/test.py"
/>
<option
value=
"$PROJECT_DIR$/auto_request.py"
/>
<option
value=
"$PROJECT_DIR$/auto_click.py"
/>
<option
value=
"$PROJECT_DIR$/auto_click.py"
/>
<option
value=
"$PROJECT_DIR$/auto_click1.py"
/>
<option
value=
"$PROJECT_DIR$/auto_click3.py"
/>
<option
value=
"$PROJECT_DIR$/auto_click3.py"
/>
<option
value=
"$PROJECT_DIR$/save_topic_id_comment_three.txt"
/>
<option
value=
"$PROJECT_DIR$/save_topic_id_comment_three.txt"
/>
<option
value=
"$PROJECT_DIR$/auto_comment3.py"
/>
<option
value=
"$PROJECT_DIR$/auto_comment3.py"
/>
<option
value=
"$PROJECT_DIR$/auto_comment2.py"
/>
<option
value=
"$PROJECT_DIR$/auto_comment2.py"
/>
<option
value=
"$PROJECT_DIR$/auto_click2.py"
/>
<option
value=
"$PROJECT_DIR$/auto_click2.py"
/>
<option
value=
"$PROJECT_DIR$/auto_request.py"
/>
<option
value=
"$PROJECT_DIR$/auto_click1.py"
/>
<option
value=
"$PROJECT_DIR$/auto_comment1.py"
/>
<option
value=
"$PROJECT_DIR$/auto_comment1.py"
/>
</list>
</list>
</option>
</option>
...
@@ -546,7 +545,7 @@
...
@@ -546,7 +545,7 @@
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
active=
"true"
anchor=
"bottom"
id=
"Terminal"
order=
"8"
visible=
"true"
weight=
"0.2
8407225
"
/>
<window_info
active=
"true"
anchor=
"bottom"
id=
"Terminal"
order=
"8"
visible=
"true"
weight=
"0.2
676519
"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"9"
side_tool=
"true"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"9"
side_tool=
"true"
/>
<window_info
anchor=
"bottom"
id=
"Python Console"
order=
"10"
/>
<window_info
anchor=
"bottom"
id=
"Python Console"
order=
"10"
/>
<window_info
anchor=
"bottom"
id=
"DB Execution Console"
order=
"11"
/>
<window_info
anchor=
"bottom"
id=
"DB Execution Console"
order=
"11"
/>
...
@@ -725,6 +724,9 @@
...
@@ -725,6 +724,9 @@
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"345"
>
<state
relative-caret-position=
"345"
>
<caret
line=
"23"
column=
"13"
selection-start-line=
"23"
selection-start-column=
"13"
selection-end-line=
"23"
selection-end-column=
"13"
/>
<caret
line=
"23"
column=
"13"
selection-start-line=
"23"
selection-start-column=
"13"
selection-end-line=
"23"
selection-end-column=
"13"
/>
<folding>
<element
signature=
"e#1#15#0"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
...
@@ -759,6 +761,9 @@
...
@@ -759,6 +761,9 @@
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"885"
>
<state
relative-caret-position=
"885"
>
<caret
line=
"59"
column=
"97"
selection-start-line=
"59"
selection-start-column=
"97"
selection-end-line=
"59"
selection-end-column=
"97"
/>
<caret
line=
"59"
column=
"97"
selection-start-line=
"59"
selection-start-column=
"97"
selection-end-line=
"59"
selection-end-column=
"97"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
...
@@ -786,27 +791,6 @@
...
@@ -786,27 +791,6 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_click1.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"100"
>
<caret
line=
"33"
column=
"28"
lean-forward=
"true"
selection-end-line=
"94"
/>
<folding>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
<marker
date=
"1556188717000"
expanded=
"true"
signature=
"1265:1454"
ph=
"..."
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_request.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"194"
>
<caret
line=
"173"
column=
"4"
selection-start-line=
"173"
selection-start-column=
"4"
selection-end-line=
"173"
selection-end-column=
"4"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_click3.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_click3.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"510"
>
<state
relative-caret-position=
"510"
>
...
@@ -871,10 +855,31 @@
...
@@ -871,10 +855,31 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_request.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"194"
>
<caret
line=
"147"
column=
"32"
selection-start-line=
"147"
selection-start-column=
"32"
selection-end-line=
"147"
selection-end-column=
"32"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_click1.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"225"
>
<caret
line=
"15"
column=
"108"
selection-start-line=
"15"
selection-start-column=
"90"
selection-end-line=
"15"
selection-end-column=
"108"
/>
<folding>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
<marker
date=
"1556240879000"
expanded=
"true"
signature=
"1310:1499"
ph=
"..."
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_comment1.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_comment1.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
99
"
>
<state
relative-caret-position=
"1
85
"
>
<caret
line=
"
15"
column=
"96"
selection-start-line=
"15"
selection-start-column=
"96"
selection-end-line=
"15"
selection-end-column=
"96
"
/>
<caret
line=
"
59"
lean-forward=
"true"
selection-start-line=
"59"
selection-end-line=
"59
"
/>
<folding>
<folding>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
</folding>
</folding>
...
...
auto_comment1.py
View file @
079c1fa9
...
@@ -10,6 +10,7 @@ from auto_request import host, user, db, passwd
...
@@ -10,6 +10,7 @@ from auto_request import host, user, db, passwd
def
get_data
(
numtime
,
numtime2
):
def
get_data
(
numtime
,
numtime2
):
try
:
try
:
print
(
"...."
)
pc
=
pymysql
.
connect
(
host
=
host
,
user
=
user
,
passwd
=
passwd
,
db
=
db
,
port
=
3306
)
pc
=
pymysql
.
connect
(
host
=
host
,
user
=
user
,
passwd
=
passwd
,
db
=
db
,
port
=
3306
)
cursor
=
pc
.
cursor
()
cursor
=
pc
.
cursor
()
cursor
.
execute
(
cursor
.
execute
(
...
@@ -55,7 +56,12 @@ if __name__ == "__main__":
...
@@ -55,7 +56,12 @@ if __name__ == "__main__":
try
:
try
:
numtime1
,
numtime2
=
time_conv
(
15
,
5
)
numtime1
,
numtime2
=
time_conv
(
15
,
5
)
print
(
numtime1
)
user_id
=
get_data
(
numtime1
,
numtime2
)
user_id
=
get_data
(
numtime1
,
numtime2
)
print
(
user_id
)
dicts
=
{}
dicts
=
{}
if
user_id
:
if
user_id
:
...
...
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