A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/308982.html below:

print there!

print there! print there!Fredrik Lundh fredrik at pythonware.com
Wed Sep 21 03:01:19 EDT 2005
Godwin Burby wrote:

> i think u've misunderstood my question. Your solution will print on a
> new line as below:
> c:\godwin\bl.csv 1
> c:\godwin\bl.csv 2
> c:\godwin\bl.csv 3
> But i want this number to diplay their value increase on the same line
> on the same sport itself without printing the filename multiple times
> on multiple lines:

I think u've misunderstood the answer.

    filename = 'c:\\godwin\\bl.csv'
    for i,row in enumerate(reader):
        # inserts or updates the database
        print "\r" + filename, i, # <-- notice the trailing comma
    print

</F>




More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4