from urllib import parse str1 = 'hahahaha' str2 = parse.quote(str1) #quote() encodes the string print(str2) < x2>#str2=haha%E5%93%88%E5%93%88
Original link: https://blog.csdn.net/RAPIER512/article/details/79761593
from urllib import parse str1 = 'hahahaha' str2 = parse.quote(str1) #quote() encodes the string print(str2) < x2>#str2=haha%E5%93%88%E5%93%88
Original link: https://blog.csdn.net/RAPIER512/article/details/79761593
When the url:url format in a css file refers to other images or font files, the url uses a relative path, and its path is relative to the css file;
The path of other files referenced in the JavaScript file is relative to the path of the html file that loads the JavaScript file.