convert the ip packet to and from RS-232 packet

2009-02-09 Thread Li Han
Hi, I need to use radio to connect two local ip network, each local network has a server computer which connects to a radio with RS-232 interface. I need to write a program to convert the local ip packet into RS-232 packet, so the radio can send packetes to the remote radio. I don't want to reinve

The rule of literal string

2008-12-16 Thread Li Han
Hi! I just began to read the tutorial of python3.0 and I just can't figure out the rule of literal string. There is a example in the tuotrial: >>> '"Isn\'t," she said.' '"Isn\'t," she said.' It is not what I want, I just want '"Isn't," she said.' be printed, why the backslash failed? These don't wo

Re: The rule of literal string

2008-12-17 Thread Li Han
Thank you, Chris! You have made me learn more about Python. -- http://mail.python.org/mailman/listinfo/python-list

Re: The rule of literal string

2008-12-17 Thread Li Han
But what repr() do remain a black hole! Han -- http://mail.python.org/mailman/listinfo/python-list

Re: The rule of literal string

2008-12-17 Thread Li Han
On 12月18日, 上午7时12分, Scott David Daniels wrote: Scott wrote: > Try: print repr(repr("'")) > that might enlighten you. I found that print( repr( repr( arbitarystring ) ) ) == repr ( arbitarystring ) -- http://mail.python.org/mailman/listinfo/python-list

Re: The rule of literal string

2008-12-17 Thread Li Han
Chris worte: [snip] > And repr("''") ==> "\"''\"" > Which when print()-ed is: "''" > And eval("''") is the same as entering two apostrophes ('') at the > REPL, both of which give an empty string object. On my machine: >>> repr("''") '"\'\'"' Han -- http://mail.python.org/mailman/listinfo/python-li

image recogniton?

2009-01-06 Thread Li Han
Hi! I know little about the computer image processing, and now I have a fancy problem which is how to read the time from the picture of a clock by programming ? Is there anyone who can give me some suggestions? Thank! Li Han -- http://mail.python.org/mailman/listinfo/python-list

Re: image recogniton?

2009-01-07 Thread Li Han
very second. We use a video camera keep shooting it, and the compass and camera are fixed. -- Li Han -- http://mail.python.org/mailman/listinfo/python-list