Re: [Tutor] How to split string into separate lines

2014-12-04 Thread Lifeng Lin
would this work? a=fe01b8412756fe02fe01b9416239fe02fe01ba41ad88fe02fe01bb41e8e7fe02fe01bc4112fbfe02fe01bd415794fe02 b=a.replace('fe02fe01','fe02\nfe01').split('\n') for c in b: ... print '

Re: [Tutor] Help with Dice game

2014-11-10 Thread Lifeng Lin
I am not familiar with the game, but maybe using offense += 1 and defense += 1 to replace the corresponding continue would help? On Mon, Nov 10, 2014 at 2:57 PM, corylog...@yahoo.com.dmarc.invalid wrote: Hello, I can not for the life of me figure out where I have gone wrong. I wrote the

[Tutor] empty gfx module?

2014-06-22 Thread Lifeng Lin
Hi Everyone! I am recently trying to process a gfx file using python. gfx module does not come default, and with some struggle, i seem to have succeeded in installing the module. However, when I import it, no methods or attributes showed up. here are some codes: ### import gfx handle =