Escape Sequence Characters and Raw String Usage with \n \b \r \t \v and \u | Vidoe - 13

Опубликовано: 26 Октябрь 2020
на канале: VRTechnologies For Automation
828
17

List of Escape Sequence :
\’ single quote
\” double quote
\\ backslash
\n newline
\b backspace
\r carriage return
\t horizontal tab
\v vertical tab

\u Unicode

We have some situations where we don’t need to execute escape chars.
Windows OS Paths
Regular Expressions.

Example:
print(“c:\users\narendra\blog”)
Solution:
print(“c:\\users\\narendra\\blog”)
print(r“c:\users\narendra\blog”)
print(R“c:\users\narendra\blog”)

Raw String is represented with r’followdByString’
Raw String do not execute escape sequence instead it treats them a literal.

Note: There is no problem with Linux Paths while working with escape sequence


Смотрите видео Escape Sequence Characters and Raw String Usage with \n \b \r \t \v and \u | Vidoe - 13 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь VRTechnologies For Automation 26 Октябрь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 828 раз и оно понравилось 17 людям.