Wie kann ich Zeichen nach FORTH 'entfernen.' ?Um Zeichen in Python zu entfernen
Für zB 123.1223.123.123
Ich möchte die Ausgabe als 123.1223.123
x = "207.185.152.69.2005"
y = 0
for i in x:
if (i == '.'):
y = y + 1
if (y == 4):
i.replace('.','')
'print (x [: '' x.rfind()]) depperm' – depperm