操作JSON
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| import urllib.request import urllib.parse
flag = '.mp4' not in '1.mp4'
'1.mp4'.find('.mp4')
'1.mp4'.count('1')
'1.mp4'.replace('.mp4', '') '1.mp4'.endswith('.mp4') downloadUrl = 'http:/test.com/1 2/123'
downloadUrl = downloadUrl.replace(' ', '%20')
urllib.parse.quote(downloadUrl)
|
本文地址: https://github.com/maxzhao-it/blog/post/4ad1a794/