how to do draw pattern with python?

Mark Lawrence breamoreboy at yahoo.co.uk
Fri Sep 21 09:55:30 EDT 2012


On 21/09/2012 14:36, echo.hping at gmail.com wrote:
> may i know how to shift the bits using only looping and branching??
>
> x....x
> .x..x.
> ..xx..
> ..xx..
> .x..x.
> x....x
>
> xx....
> ..x..x
> ...xx.
> ...xx.
> ..x..x
> xx....
>
> .xx...
> x..x..
> ....xx
> ....xx
> x..x..
> .xx...
>
> etc..
>

You write some code and test it.  If it doesn't work you cut and paste 
the smallest sample of code that can reproduce the problem, together 
with the full traceback if applicable, and you're likely to get plenty 
of answers.

-- 
Cheers.

Mark Lawrence.




More information about the Python-list mailing list