Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

help

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


miriam.gomezrs at udlap

Jul 19, 2012, 3:31 PM

Post #1 of 1 (66 views)
Permalink
help

Hello, sorry for bothering you, but I have a doubt,

Is there a way to turn this string into a tuplelist??????, I need it for gurobi

('per1','persona1.1','pro1'),('per1','persona1.1','pro2'),('per1','persona1.1','pro3'),('per1','persona1.1','pro4'),('per1','persona1.1','pro5'),('per2','persona2.1','pro1'),('per2','persona2.1','pro2'),('per2','persona2.1','pro3'),('per2','persona2.1','pro4'),('per2','persona2.1','pro5'),('per2','persona2.2','pro1'),('per2','persona2.2','pro2'),('per2','persona2.2','pro3'),('per2','persona2.2','pro4'),('per2','persona2.2','pro5'),('per2','persona2.3','pro1'),('per2','persona2.3','pro2'),('per2','persona2.3','pro3'),('per2','persona2.3','pro4'),('per2','persona2.3','pro5'),('per2','persona2.4','pro1'),('per2','persona2.4','pro2'),('per2','persona2.4','pro3'

the string is made with fors, using data from another file, and I need it as a tuplelist

Thank you

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.