FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Examples/Python/ForEachLoop.py at master · ishida66/Examples · GitHub
ishida66
/
Examples
Public
forked from
daviddoria/Examples
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Examples
/
Python
/
ForEachLoop.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (16 loc) · 430 Bytes
Breadcrumbs
Examples
/
Python
/
ForEachLoop.py
Copy path
File metadata and controls
22 lines (16 loc) · 430 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/python
from
optparse
import
OptionParser
from
glob
import
glob
parser
=
OptionParser
()
parser
.
add_option
(
"--files"
,
type
=
"string"
,
help
=
"a list of files"
)
(
options
,
args
)
=
parser
.
parse_args
()
FileList
=
glob
(
options
.
files
)
print
"For Each:"
#print options.files
for
CurrentFile
in
FileList
:
print
CurrentFile
print
"For :"
#print options.files
for
i
in
range
(
0
,
len
(
FileList
)):
print
FileList
[
i
]
Back
|
FazBrowse Home
|
New Git URL