我有一套
set1= { '1', '2' }
我想将'1','2'转换为int,就像这样:
set_new = { 1, 2 }
如何在python中做到这一点?
python string int set
int ×1
python ×1
set ×1
string ×1