Skip to content

Commit

Permalink
Update index.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Mashiro2000 authored Oct 28, 2021
1 parent 3142ffe commit 140b26a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def calculateSignature(self,key,stringToSign):

# URL编码
def percentEncode(self,value,flag='str'):
'''flag=0 -> encodeStr (default)
flag=1 -> encodeDict'''
'''flag=str -> encodeStr (default)
flag=dic -> encodeDict'''
if flag == 'str':
return urllib.parse.quote(string=value,encoding='utf-8').replace("+", "%20").replace("*", "%2A").replace("%7E", "~")
elif flag == 'dic':
Expand Down

0 comments on commit 140b26a

Please sign in to comment.