Hello everyone,
I would like to use a list while I am changing its name.
I have the following lists defined label_SUB1, label_SUB2, label_SUB3 and label_SUB4.
for j in range(1,4):
for i in range(0,205):
print "AAA," + str(i+12000027+10000*j) + "," + label_SUB[j][i] + ",33,"...
Thank you guys, I spoke with the company and they inserted a feature that allows me to export it with only a couple of clicks. Thank you for your support!
No, actually I want to extract the information that the publisher is providing.
Well, the main question is: Does the publisher allow the exportation with only one click or not? Since I can get exactly the same information just doing the same repetitive task for a couple of hours. So, I am...
Hi Chris!
Thank you for your tip! Wget seems to be very powerful :)
Although I am wondering if there is any other language already installed on a normal windows machine that can perform the same task in a easy way. I am looking for something that either interact with internet explorer (maybe...
Thank you for your reply Chris!
I agree with you, but if I want to save the images with a given name, probably it will not be the best method, or if I want to grab a info that is on a table always in the same position.
which language do you think is the most suitable to do it? I was...
Hello everyone,
Yesterday I faced a difficulty and I would like that someone give me a very good piece of advice in order to never have this problem again. Here is the description:
I was working on the computer of my client using a webpage that he logged in (i.e., I was using his account)...
Thank you for your suggestion!
However, I am getting a problem with the space, the attribute end=" " is no longer available for append
I have the following error message:
TypeError: append() takes no keyword arguments
Thank you so much, you have found "the cat"!
I have another question: since I am not very familiar with python, what I normally do when I have a python script it consists into send the output to a file (in linux), like this:
>> ./script.py > output.txt
or
>>python script.py > output.txt...
Hi mikron,
I am getting this:
"matrix (3 x 4)
2.10
0.00
0.00
0.10
0.00
0.00
0.00
0.00
0.00
0.40
0.00
0.00
"
Here is your code adapted to the version 3.3:
def main():
DBG=False
sep=","
dic={}
for line in open('matrix.txt'):
if...
As attachment to this post, follows my inputdata.
What I would like to have is a matrix 31x31 with zeros and using the information in "out_matrix2.txt" populate the matrix (substitute the value "0" for the value that is specified by the txt file).
I think I am not going in the correct...
I am using python 3.3, but I don't have access to libraries like "numpy" and so. - Company policy
Here is my code. Unfortunately I am not having the same result as you had:
def main():
file_object=open('out_matrix2.txt','r')
x=[]
y=[]
z=[]
for line in...
Thank you for your posts, but in my python version the command:
>>print dic[i, j],
does not work.
I think I need to write something like this: print(dic[i,j]+",")
Hello Mikrom,
Thank you very much for your reply, could you also help me to get the number of rows and columns of a dictionary?
How do I do that? I am used to do "size(matrix)" in matlab to get this information.
Thank you!
Hello everyone,
I am having some problems trying to print the following dictionary:
{('31', '3'): '2.85124e-05', ('31', '23'): '2.85124e-05', ('31', '17'): '2.85124e-05', ('31', '30'): '2.85124e-05', ('31', '19'): '2.85124e-05', ('31', '31'): '2.85124e-05', ('31', '26'): '2.85124e-05'...
Hi IPGuru,
well, I have this script from an old employe that didn't left the instructions to use this file. That is why I would like to decrypt the code in order to know how to use it. I don't have any intention to do reverse engineering.
Wow, I tested the Python code using with dictionary and it is really fast.
Thank you both of you!
Is SQL easy to use? I have some experience with MySQL, will it help?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.