Posts by Linha de Código • 33 points
9 posts
-
0
votes2
answers781
viewsA: How to join 2 lists in a single Matrix?
can do as follows: vet1 = [] vet2 = [] vet3 = [] print ('Informe os valores do primeiro vetor') for i in range(0, 3): vet1.append(int(input('Informe um numero: '))) print ('Informe os valores do…
pythonanswered Linha de Código 33 -
1
votes1
answer507
viewsQ: Javascript, handling escape characters
In a function I get strings in this template message="'J\\xe1'"; //sendo '\xe1' = á I need to turn these bars " " into a single bar ' ' ' to get the Unicode code ace, where this string can be any…
-
1
votes1
answer157
viewsQ: Javascript, handling Unicode code
How can I print the character of a Unicode code? For example: var i = "\u0062"; How do I convert this code to the character it represents?
-
0
votes3
answers314
viewsA: How to stop fomulário sending with Javascript?
After you click the button and the JS check the data, if by chance it is not within the expected of a false Return in the function See this tutorial on page 211:…
-
0
votes1
answer37
viewsA: opencv in python
from tkinter import messagebox import cv2 image = cv2.imread("sample.jpg") color = int(image[300, 300]) messagebox.showinfo("Cor em BGR", color)
-
0
votes2
answers48
viewsQ: Apache slave server
The doubt is quite simple, so I’m sorry for the ignorance. I’m setting up a website with apache and the same will receive thousands of access, the doubt would be, what to do when the access limit of…
-
0
votes1
answer515
viewsQ: Mysql and python error when entering data
I have the following code: #encoding: utf-8 from django.utils.encoding import smart_str import mysql.connector mydb = mysql.connector.connect( host="localhost", user="[--CENSURADO--]",…
-
0
votes1
answer56
viewsQ: Python error with object orientation
class DBAction(object): __conn = None __cursor = None __id = None def __init__(self, arg): self.__id = arg self.__conn = sqlite3.connect('clientes.db') self.__cursor = conn.cursor() def…
-
-2
votes1
answer65
viewsQ: Database query with java
I will make a comparison with my problem using a database functionality and html Jquery. With Jquery we have the possibility to visit the database and bring the data to the frontend in HTML, and…