在ipython中添加换行符
发布于 2021-01-29 17:07:20
如果在iPython中引入for循环或任何多行命令,该如何返回并向其添加行?我跑了这个:
for row in table.find_all('tr'):
cells = row.find_all('td')
for c,cell in enumerate(cells):
print c,":",cell.get_text().strip()
try:
this = cells[0]
that = cells[1]
the_docket = cells[2]
other_thign = cells[3]
jumble = re.sub('\s+',' ',str(cells[5])).strip()
except:
"Nope"
并且意识到我需要在其中添加一行,但是我不能仅仅在运行命令的b / c iPython中点击“输入”。那么我可以在iPython中编辑多行命令吗?
关注者
0
被浏览
255
1 个回答