⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Izobraževanje CS
All Projects
Izobraževanje CS
Overview
Activity
Issues
Spent time
Calendar
News
Documents
Wiki
Files
Repository
Download (312 Bytes)
Gospod Watson, lahko pridete sem, želel bi vas videti
» Borut.py
Andrej Brodnik
, 01.10.2025 19:23
import
socket
Borut
=
"
127.0.0.1
"
kje
=
5005
najv_velikost_sporocila
=
1024
vtic
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_DGRAM
)
vtic
.
bind
((
Borut
,
kje
))
print
(
"
Cakam na sporocilo
"
)
sporocilo
,
posiljatelj
=
vtic
.
recvfrom
(
najv_velikost_sporocila
)
print
(
f
"
Prispelo sporocilo:
{
sporocilo
}
od
{
posiljatelj
}
"
)
« Previous
1
2
3
4
Next »
(4-4/4)
Loading...