Python String Trick! #shorts

preview_player
Показать описание
Did you know this function existed?
#codeMyster #python #programming #coding #vscode #pythonprogramming
Рекомендации по теме
Комментарии
Автор

While this is great for other types of string, URLS SHOULD NOT BE PARSED LIKE THIS, there are a lot of exceptions which you don't know. Just install a up to date maintained library. A lot of security bugs happen due to miss parsing of url

boem
Автор

This is called a "trick" in python. I know why I stick with c# and c

I would consider it as normal string handling...?

florianpreu
Автор

This trick has helped me so much in the past! Thank you for sharing this with more people!

elyseozomah
Автор

I did not know about this trick. This will actually be quite useful!

annya
Автор

Wow. this is a very interesting and cool trick. Thanks!

inspire_me
Автор

uh... host = url.split(".")[0] what's the difference?

nebunerd
visit shbcf.ru