Einfacher Chat
Verfasst: Samstag 11. Mai 2013, 09:06
Hi,
wollte mal fragen was man inn Python alles kapieren muss um einen "einfachen" Chat zu programmieren.
Habe ein kleines fake programm geschrieben ohne server also nur mit sich selbst.
Fragen:
Wie programmiere ich einen Server?
Was brauche ich noch in meinem Chat?
MfG
wollte mal fragen was man inn Python alles kapieren muss um einen "einfachen" Chat zu programmieren.
Habe ein kleines fake programm geschrieben ohne server also nur mit sich selbst.
Code: Alles auswählen
ja = float(raw_input("Enter IP:"))
if ja == 123:
print "Your IP is right"
a = float(raw_input ('Enter security IP:'))
if a == 321:
print "You have connected with the server"
str(raw_input('Send:'))
str(raw_input('Send:'))
str(raw_input('Send:'))
str(raw_input('Send:'))
str(raw_input('Send:'))
str(raw_input('Send:'))
str(raw_input('Send:'))
str(raw_input('Send:'))
str(raw_input('Send:'))
str(raw_input('Send:'))
str(raw_input('Send:'))
str(raw_input('Send:'))
str(raw_input('Send:'))
str(raw_input('Send:'))
str(raw_input('Send:'))
str(raw_input('Send:'))
str(raw_input('Send:'))
str(raw_input('Send:'))
str(raw_input('Send:'))
str(raw_input('Send:'))
else:
print "ERROR404"
print "please start the app new"
print "please press enter to close"
raw_input()
else:
print "ERROR404"
print "please start the app new"
print "please press enter to close"
raw_input()Fragen:
Wie programmiere ich einen Server?
Was brauche ich noch in meinem Chat?
MfG