import time
>>> time.time()
1625280241.9256263
>>> b = int(time.time())
>>> b
1625280302
>>>
====================== RESTART: D:/pythonDLEfile/mypy04.py =====================
Traceback (most recent call last):
File "D:/pythonDLEfile/mypy04.py", line 13, in <module>
turtlr.pendown()
NameError: name 'turtlr' is not defined
>>>
====================== RESTART: D:/pythonDLEfile/mypy04.py =====================
Traceback (most recent call last):
File "D:/pythonDLEfile/mypy04.py", line 17, in <module>
turtle.goto(x4y4)
NameError: name 'x4y4' is not defined
>>>
====================== RESTART: D:/pythonDLEfile/mypy04.py =====================
>>>
====================== RESTART: D:/pythonDLEfile/mypy04.py =====================
Traceback (most recent call last):
File "D:/pythonDLEfile/mypy04.py", line 24, in <module>
turtlr.write(distance)
NameError: name 'turtlr' is not defined
>>>
====================== RESTART: D:/pythonDLEfile/mypy04.py =====================
>>>
>>> a = "to be or not to be"
>>> a[::-1]
'eb ot ton ro eb ot'
>>> b = "sxtsxtsxtsxtsxt"
>>> b[::3]
'sssss'
>>>
====================== RESTART: D:/pythonDLEfile/mypy02.py =====================
>>>
====================== RESTART: D:/pythonDLEfile/mypy02.py =====================
Traceback (most recent call last):
File "D:/pythonDLEfile/mypy02.py", line 5, in <module>
b = a.format(mane = "张三",age = "48")
KeyError: 'name'
>>>
====================== RESTART: D:/pythonDLEfile/mypy02.py =====================
>>>
a = "名字是:{0},年龄是{1}"
b = a.format("张三",18)
a = "名字是:{name},年龄是{age}"
b = a.format(name = "张三",age = "48")