Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-Erm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-Erm
Commits
cbd054a5
Commit
cbd054a5
authored
Apr 12, 2021
by
Suzhi Bi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update begin_3.py
parent
3ab3a771
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
user3's_code_and_picture/begin_3.py
user3's_code_and_picture/begin_3.py
+0
-2
No files found.
user3's_code_and_picture/begin_3.py
View file @
cbd054a5
...
@@ -12,7 +12,6 @@ def sender(ip, time_max, filepath):
...
@@ -12,7 +12,6 @@ def sender(ip, time_max, filepath):
print
(
msg
)
print
(
msg
)
sys
.
exit
(
1
)
sys
.
exit
(
1
)
# time_max = input("please enter the maximum time (seconds) allowed for picture(s): ")
if
time_max
.
isdigit
():
if
time_max
.
isdigit
():
s
.
send
(
time_max
.
encode
(
'utf-8'
))
s
.
send
(
time_max
.
encode
(
'utf-8'
))
s
.
close
()
s
.
close
()
...
@@ -27,7 +26,6 @@ def sender(ip, time_max, filepath):
...
@@ -27,7 +26,6 @@ def sender(ip, time_max, filepath):
img_type
=
[
'.jpg'
,
'.JPG'
,
'.png'
,
'.PNG'
,
'.bmp'
,
'.BMP'
]
img_type
=
[
'.jpg'
,
'.JPG'
,
'.png'
,
'.PNG'
,
'.bmp'
,
'.BMP'
]
while
1
:
while
1
:
# filepath = input("please input file or folder path: ")
if
os
.
path
.
isdir
(
filepath
):
if
os
.
path
.
isdir
(
filepath
):
img_path_vec
=
[
os
.
path
.
join
(
filepath
,
imgpath
)
for
imgpath
in
os
.
listdir
(
filepath
)
if
os
.
path
.
splitext
(
imgpath
)[
1
]
in
img_type
]
img_path_vec
=
[
os
.
path
.
join
(
filepath
,
imgpath
)
for
imgpath
in
os
.
listdir
(
filepath
)
if
os
.
path
.
splitext
(
imgpath
)[
1
]
in
img_type
]
for
img_name
in
img_path_vec
:
for
img_name
in
img_path_vec
:
...
...
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