在jupyter notebook中使用 tagui模块的问题

我想请问在jupyter notebook中使用 tagui模块,


import  tagui as  t

t.url('https://www.baidu.com/')

t.type('//*[@id="kw"]','123')


t.type('//*[@id="kw"]','456')

然后在每次使用t.type的时候想要清楚前面的文字该怎么清除呢?

img

然后再次输入456时候 怎么删除前面的123呢?

写成input 传参的形式试试?