Posts by HV Lopes • 313 points
14 posts
-
-2
votes1
answer147
viewsQ: Python Dictionary - Most Common Word Count
good night. I am studying dictionaries, I have developed the following algorithm for word accounting in articles contained in TXT’s files and display of more frequent words, but I am not able to…
-
1
votes1
answer103
viewsQ: Exit Confirmation Sweetalert 2 - Angular
Boa Tarde Personal, I recently met the Sweet Alert library. I’m trying to use it to leave a page, currently count only with a Function in Typescript. I would like to know how to transfer Sweet Alert…
-
0
votes1
answer112
viewsQ: Data Crawling in Python
Good afternoon, you guys. I decided to start my studies with the Python Crawler technique. I built the following script using lib Selenium : # Importando selenium para realizar o crawling from…
-
0
votes2
answers98
viewsQ: Doubt regarding Modal Bootstrap
I inserted a Modal in my HTML, however, for some reason apparently it is stuck in some part of the code , I can visualize the modal, but I can’t perform actions inside it , code and print below:…
-
-2
votes1
answer123
viewsQ: Convert Encoding to JSON
Boa Tarde Galera, I have a question, I have a file in JSON, which is with some unidentifiable characters, is there any method for me to set the encoding of it in UFT-8? Because I need to play this…
-
2
votes2
answers4377
viewsQ: Regex for monetary values
I would like to know how to do a regex to capture a monetary value with semicolons. Ex: 7.300.250,00
-
0
votes1
answer397
viewsQ: Tweeter
I am using the API provided by Tweeter next to python to fetch certain tweets. The problem is that I wish view the tweets received by the person and not the tweets sent by them however, I am not…
-
1
votes3
answers105
viewsQ: Error on average of students
I developed the following algorithm to calculate student averages: matricula = int (input("Digite a matrícula do Aluno: ")) nota1 = float (input("Digite a primeira nota do aluno: ")) nota2 = float…
-
11
votes3
answers3029
viewsQ: How to calculate perfect numbers quickly?
I am trying to perform an exercise to show the perfect numbers present within a certain range, but I can only accomplish such a feat until the perfect fourth number. If I raise the range, it takes…
-
7
votes3
answers4852
viewsQ: How to remove accents with regular expressions in Python?
I am developing a regular expression to try to replace accents and characters with normal characters Example: á = a ç = c é = e But mine regex is just eliminating some hint? import re string_velha =…
-
1
votes1
answer2245
viewsQ: Script to recognize similarity between images
Good afternoon Everybody, all right? I am starting my studies in Python together with Opencv, and I want to perform the reading of images and display the degree of similarity between them. Ex: I…
-
2
votes1
answer1231
viewsQ: Opencv error in Python:
Good afternoon Everybody, all right? I’m looking to learn about Face Detection in Python using Opencv, installed all necessary libs, however while running the file I come across the following error…
-
0
votes1
answer63
viewsQ: How to import files using REGEX?
Good afternoon Everybody, all right? I have a question in regex in python. I want to create a script to open files without informing its format may be pdf, txt, jpg, png, among others... However, I…
-
1
votes2
answers114
viewsQ: Replace numbers that are within a word
I want to remove numbers in the middle of letters, but I do not want to remove all numbers from the text, example: Vini12cius I want to turn into Vinicius, but without changing a possible CPF that…