Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

善用 enumerate #26

Open
linroex opened this issue Feb 6, 2016 · 0 comments
Open

善用 enumerate #26

linroex opened this issue Feb 6, 2016 · 0 comments
Assignees

Comments

@linroex
Copy link
Collaborator

linroex commented Feb 6, 2016

for y in range(0, len(link)): 
            link[y] = link[y].replace('html', ' + ', 100).replace('\"/', ' + ', 100).split(' + ')  

去查 enumerate,可以用它設計這邊的程式,或是用list comprehension也可以

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants