Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~440 People Reached
Favorite Forums
Favorite Tags
Member Avatar for lakhan.p
Member Avatar for lakhan.p

file f:\\pulldpto.ini hold following data... 101;Activaciones;Virginia Aláez;C/ Isabel Colbrand, 22 , Edif D Planta 4º ;28050 ( Madrid) what will be out put of variables. [python] fINI='f:\\pulldpto.ini' fINI=open(fINI,'r') while 1: linea=fINI.readline() if not linea:break linea=string.split(linea,';') variabl1[string.strip(linea[0])]=0 variable2[string.strip(linea[0])]=string.strip(linea[1]) fINI.close() [/python]

Member Avatar for woooee
0
79
Member Avatar for lakhan.p

[B][COLOR="Red"]if param[0:4]<>'ini=': print ' %s ini='%sys.argv[0] sys.exit(1) inifile=param[4:] [/COLOR][/B] Hi All, Can u explain wht actually above code work? Thanks in Advance.

Member Avatar for jlm699
0
100
Member Avatar for lakhan.p

Hi, I m trying to open a file in read mode , my program is below ... #!/usr/bin/python print "------" file = open("C:\Lakhan\Pytonpro\file.txt", "r") print file file.close() but it shows following error ------ Traceback (innermost last): File "C:\Program Files\Python\Pythonwin\pywin\framework\scriptutils.py", line 165, in RunScript exec f in __main__.__dict__ File "C:\Documents and …

Member Avatar for lakhan.p
0
193