You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
601 B
57 lines
601 B
MicroPython \.\+ version
|
|
Use \.\+
|
|
>>> # check REPL allows to continue input
|
|
>>> 1 \\\\
|
|
... + 2
|
|
3
|
|
>>> '"'
|
|
'"'
|
|
>>> "'"
|
|
"'"
|
|
>>> '\\\\''
|
|
"'"
|
|
>>> "\\\\""
|
|
'"'
|
|
>>> '\\\\'('
|
|
"'("
|
|
>>> "\\\\"("
|
|
'"('
|
|
>>> print("\\\\"(")
|
|
"(
|
|
>>> print('\\\\'(')
|
|
'(
|
|
>>> print("\\\\'(")
|
|
'(
|
|
>>> print('\\\\"(')
|
|
"(
|
|
>>> 'abc'
|
|
'abc'
|
|
>>> "abc"
|
|
'abc'
|
|
>>> '''abc
|
|
... def'''
|
|
'abc\\\\ndef'
|
|
>>> """ABC
|
|
... DEF"""
|
|
'ABC\\\\nDEF'
|
|
>>> print(
|
|
... 1 + 2)
|
|
3
|
|
>>> l = [1,
|
|
... 2]
|
|
>>> print(l)
|
|
[1, 2]
|
|
>>> d = {1:'one',
|
|
... 2:'two'}
|
|
>>> print(d[2])
|
|
two
|
|
>>> def f(x):
|
|
... print(x)
|
|
... [K
|
|
>>> f(3)
|
|
3
|
|
>>> if1=1
|
|
>>> if1 = 2
|
|
>>> print(if1)
|
|
2
|
|
>>>
|
|
|