[TehPUG] تبدیل ۲ نوع داده tuple به یک dict

Ramin Najjarbashi ramin.najarbashi at gmail.com
Mon Mar 9 19:48:15 CET 2015


سلام
ساده ترین روش برای این کار:

dict(zip(tup2,tup1))

2015-03-09 22:03 GMT+03:30 Vahid Maani <vahidmaani at gmail.com>:

> tup2 = ('one', 'two', 'three')
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tehpug/attachments/20150309/3dcda4e9/attachment.html>


More information about the TehPUG mailing list