python ,MySQl and http

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kholood
    New Member
    • Apr 2010
    • 2

    python ,MySQl and http

    I am new to programing and data base
    I have Q about how to choose items from a list of strings which is in a file
    as my favorit and put them in a http
    all that should br writen in python
    I have only made the connection but i dont know how to keep going on it???
  • Glenton
    Recognized Expert Contributor
    • Nov 2008
    • 391

    #2
    Hi

    Is this a homework assignment? We're happy to help, but more effort and more specific questions will get you better answers.

    To get you started the following will open a file and put each line as a string in a python list:

    Code:
    myfile=open("filename.txt")
    mylist=myfile.readlines()
    myfile.close()
    This is often a reasonable way to start, because there are many functions for manipulating python lists. See the docs for more.

    Comment

    Working...