This website requires JavaScript.
Explore
Help
Sign In
mirrors
/
micropython
mirror of
https://github.com/micropython/micropython.git
Watch
1
Star
0
Fork
You've already forked micropython
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
50dc5f10a6
micropython
/
tests
/
basics
/
string_escape.py
12 lines
154 B
Python
Raw
Blame
History
a
=
"
a
\1
b
"
print
(
len
(
a
)
)
print
(
ord
(
a
[
1
]
)
)
print
(
len
(
"
a
\123
b
"
)
)
a
=
"
a
\123
45b
"
print
(
len
(
a
)
)
print
(
ord
(
a
[
1
]
)
)
a
=
"
a
\xff
b
"
print
(
len
(
a
)
)
print
(
ord
(
a
[
1
]
)
)
Reference in New Issue
View Git Blame
Copy Permalink