Hi,
There is AP with UDP-Server(sending UDP messages).
My computer has connected the AP. I know how to receive messages form a client
via socket.
But, Now, how to receive messages from a server?
Thanks!
___
Tu
SOCK_DGRAM)
s.bind(("",port))
print('waiting on port:',port)
while True:
data,addr = s.recvfrom(1024)
print('reciveed:', data, "from", addr)
I want to arrange the messages to:
array1 = #the numbers which is start as 'a' in the messages
Hi all,
I receive the string messages from my Mobile via UDP as below:
A, 0.1, 0.6, 0.7
B, 0.2, 0.3, 0.8
I want to arrange them to two array as below:
a = (0.1, 0.6, 0.7)
b = (0.2, 0.3, 0.8)
all the number are float.
Thanks!
Paul Z
___
Tutor
Are there some way to conver it to the code of Python 3?
I'm too anxious to hear the sound from Python though I'm a absolute beginner.
Many thanks
Paul Z
> From: p...@whoosh.cn
> To: l...@openend.se
> Date: Sun, 26 Jul 2015 19:29:19 +08
on", Thank you. :-)
Paul Z
> To: p...@whoosh.cn
> CC: tutor@python.org; l...@openend.se
> From: l...@openend.se
> Subject: Re: [Tutor] How to generate a pure tones and random noise using
> Python?
> Date: Sat, 25 Jul 2015 22:35:24
h in web, some people say that I can use winsound which can
generate a fixed frequency beep. However, It is Windows only. (I'm under Linux)
and I think It is not a professional library to generate audio signal.
How about pygame? and some examples?
any ideas?
Thank