使用unpack,表示将('id','kw', '虚竹')解包成 'id','kw', '虚竹' ,传递给方法
不使用unpack,表示将('id','kw', '虚竹')作为一个整体传递给方法
上图当中:
locator_type = 'id'
locator = 'kw'
text = '虚竹'
上图当中:
locator_type = 'id'
locator = 'kw'
locator = 'su'
text = '虚竹'
使用unpack,表示将('id','kw', '虚竹')解包成 'id','kw', '虚竹' ,传递给方法
不使用unpack,表示将('id','kw', '虚竹')作为一个整体传递给方法
上图当中:
locator_type = 'id'
locator = 'kw'
text = '虚竹'
上图当中:
locator_type = 'id'
locator = 'kw'
locator = 'su'
text = '虚竹'