Posts by Milton Teixeira • 43 points
6 posts
-
0
votes2
answers1424
viewsA: Problems with python libraries, Chatbot
You named your chatterbot chatterbot.py and then imported the chatterbot changes its name to any other and should work.
-
1
votes0
answers143
viewsQ: Avoid repeat names in json
I am looking for a form/function/method so that it is not possible to repeat the value saved in Json, for example: I am saving the json below and do not want to save the same name in json. [ [ {…
-
1
votes1
answer67
viewsA: Python - Mongo Engine Error: Tried to save Duplicate Keys (Duplicate Key Error)
Solved, it was discovered that I had two variables: name = Stringfield(Unique=True) password = Stringfield(Unique=True) we switched to required and it worked. Thank you for the attention of those…
-
1
votes1
answer67
viewsQ: Python - Mongo Engine Error: Tried to save Duplicate Keys (Duplicate Key Error)
Python I am trying to save more than one user in Json but it does not accept the introduction of more than one, always gives the: Tried to save Duplicate Unique Keys (Duplicate Key Error) here is…
-
1
votes1
answer2211
viewsQ: Clear string in Python (remove escape characters)
I came across some strings with the following content, example: "++++++//texto+++!!!+++//texto++++" I’m trying to find a method to clear the phrase but I’m not succeeding, someone could help me?…
pythonasked Milton Teixeira 43 -
0
votes2
answers189
viewsQ: Problem to add content in Arraylist
I have an abstract animal class, which feline and canine inherit from it, and I have a client class that owns 2 arrays, one to add felines and one for canines. However, when adding the feline in the…