Das ist der Jeopardy-Clone, den ich in Anlehnung an das 36C3-Event geschrieben habe. Wer immer Lust hat, darf und soll Fragen beisteuern
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
493 B

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
def my_local_ip():
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
# doesn't even have to be reachable
s.connect(('', 1))
IP = s.getsockname()[0]
except Exception:
IP = ''
return IP
def main(args):
return "Your local ip is: "+my_local_ip()
if __name__ == '__main__':
import sys