xxxxxxxxxx
import urllib.parse
def remove_query_string(url):
parsed_url = urllib.parse.urlparse(url)
clean_url = parsed_url.scheme + '://' + parsed_url.netloc + parsed_url.path
return clean_url
# Example usage:
url_with_query = 'https://www.example.com/page?param1=value1¶m2=value2'
clean_url = remove_query_string(url_with_query)
print(clean_url)
xxxxxxxxxx
var u = new URL('https://server.de/test?q#h')
u.hash = ''
u.search = ''
console.log(u.toString())
Run code snippetHide results
xxxxxxxxxx
Dynamic viscosity, ŋ [Pa*s]
Kinematic viscosity, v [m^2/s]
v = ŋ / ρ
UNIT REVIEW
Pa*s = kg*m*s/(s^2*m^2) = kg/(s*m)
ŋ/ρ = kg/(s*m) / kg/m3 = m^2/s
BASIC UNITS:
Pa= N/m2
N=kg*m/(s^2)
ρ=kg/m3