假设有两个列表:
['a', 'b', 'c'], ['d', 'e', 'f']
我想要的是:
'ad','ae','af','bd','be','bf','cd','ce','cf'
我怎样才能在没有递归或列表理解的情况下得到这个?我的意思是只使用循环,使用 python?
python loops
loops ×1
python ×1