#!python3
import appex, ui
try:
import asyncio
except Exception:
import traceback
error=traceback.format_exc()
v = ui.View(frame=(0,0,300,600))
appex.set_widget_view(v)
if 'error' in globals():
for i in [error[i:i+42] for i in range(0,len(error),42)]:
print(i)
path='/var/containers/Bundle/Application/F894C101-DE10-4410-915A-68B34ACBBC62/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/asyncio/base_events.py'
text=open(path,'r')
loop=0
for i in text:
print(i,end='')
if loop==5:
break
loop+=1
text.close()
This is the code.
And
https://www.dropbox.com/s/2hhhkzobpwb83a2/写真 2018-05-30 18 54 39.jpg?dl=0
This is the result.
Why I can’t import asyncio?