convert the ip packet to and from RS-232 packet
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 reinvent the wheel, is there anyone could give me some suggestions? Thank you! Han -- http://mail.python.org/mailman/listinfo/python-list
The rule of literal string
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 work at all: >>> '''"Isn't," she said.''' '"Isn\'t," she said.' >>> r"Isn't," she said. SyntaxError: invalid syntax (, line 1) >>> r'"Isn't," she said.' SyntaxError: invalid syntax (, line 1) I have tried to solve it until my brain damaged and now I need to sleep. -- http://mail.python.org/mailman/listinfo/python-list
Re: The rule of literal string
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
But what repr() do remain a black hole! Han -- http://mail.python.org/mailman/listinfo/python-list
Re: The rule of literal string
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
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-list
image recogniton?
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?
On 1月7日, 上午4时14分, J Kenneth King wrote: > I'm curious as to what application the solution to this problem is > practical for all of its difficulty? Sorry, I oversimplified the question because of my poor english. It is an analog compass whose value we need to read into the computer every 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
