names = [] # List to store generated names
consonants = ["b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", "y", "z"]
vowels = ["a", "e", "e", "i", "o", "u"]
for _ in range(amount):
name = "" # Initialize an empty string for each name
for _ in range(name_length + random.randint(round((name_length - ((name_length * 2) - 1)) / 2), round((name_length - 1) / 2))):
consonant = random.choice(consonants)
vowel = random.choice(vowels)
name += consonant + vowel # Append consonant and vowel to the name
names.append(name) # Add the generated name to the list
sentence = names.capitalize()
print(" ".join(sentence), end=".") # Print all generated names, joined by a comma```
Warum gibt es "AttributeError: 'List' -Objekt aus, das kein Attribut 'Kapitalisierung'" " auf surt[code] names = [] # List to store generated names consonants = ["b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", "y", "z"] vowels = ["a", "e", "e", "i", "o", "u"]
for _ in range(amount): name = "" # Initialize an empty string for each name for _ in range(name_length + random.randint(round((name_length - ((name_length * 2) - 1)) / 2), round((name_length - 1) / 2))): consonant = random.choice(consonants) vowel = random.choice(vowels) name += consonant + vowel # Append consonant and vowel to the name names.append(name) # Add the generated name to the list sentence = names.capitalize() print(" ".join(sentence), end=".") # Print all generated names, joined by a comma``` [/code]
Ich möchte einen XML-Validierungs-Restdienst mit Apache Camel durchführen, möchte jedoch, dass der Pfad zur Datei dynamisch ist, aber das konnte ich nicht tun:
package com.example.XMLValidator;...
Ich habe das folgende einfache Java-Programm, das nach einem Benutzernamen (über den Scanner) und einem Passwort (über die Konsole) fragt. Beachten Sie, dass ich dies NICHT in einer IDE wie Eclipse...
Ich habe eine einfache Blazor -Komponente namens TagComponent, die 4 Parameter empfängt. Mein Problem ist mit dem ontagausgewählten Parameter, der einen Rückruf erhält, der aus dem TagComponent...
Ich habe Probleme, PHP -Funktionen aus JavaScript aufzurufen. Ich habe einige Vorschläge zum Stackoverflow ohne Erfolg ausprobiert. Ich bin mir nicht sicher, was ich hier fehlt ...
Ich schreibe, um...