Re: question on subprogram parameter

2012-10-28 Thread MRAB
On 2012-10-29 03:03, skyworld wrote: Hi, I'm studying python now and I saw a piece of code like this: def storeDbase(db, dbfilename=dbfilename): . dbfile=open(dbfilename,'w') for key in db: print(key, file=dbfile) can anybody help me to understand what does th

question on subprogram parameter

2012-10-28 Thread skyworld
Hi, I'm studying python now and I saw a piece of code like this: def storeDbase(db, dbfilename=dbfilename): . dbfile=open(dbfilename,'w') for key in db: print(key, file=dbfile) can anybody help me to understand what does this "file=dbfile" mean and what is its funct