concatenação-de-string

What is the best way to concatenate strings in Python?

I know I can concatenate strings with +=, +, join() and append(). They all give me the same result when I concatenate Two str ... gs. What is the best way to concatenate strings in Python? What is the difference between those mentioned? When to use each?

Take part of a string delimited between characters

I have a string like the one in the example below: $string = 'Lorem ipsum dolor sit amet, consectetur /adipiscing elit/.'; ... adipiscing elit/.'; Expected output: $string = 'Lorem ipsum, consectetur.' $retirado = 'dolor sit amet adipiscing elit';

Concatenate arrays using numpy module

A question, for the solution of linear systems: how to concatenate an array (array) A, an array (column vector) b, so that one has the "augmented" array of the system, A~ = [A b], using numpy?

Interleave two strings in a vector

/** 5. Faça um programa que receba 2 strings (A e B) e retorne uma terceira string (C) formada pelos caracteres de A ... as not as I imagined I know that in C I learned about the function strcat(), but I do not know how to apply this example.

Multiple lines in a Showmessage in Delphi

I need to fire an error message if the user tries to enter invalid codes in a temporary table in the grid. The codes come fr ... n {INSERE DADOS NO BANCO do txt} else begin MsgAviso('Número já cadastrado!' + text); end; end;

How to search recursively using grep

How to search for a certain word recursively in all files of the current directory and its subdirectories? I tried traversing with: find . | grep "palavra"

Concatenate Strings in C

Good afternoon, guys! I'm having a problem with Strings using the C Language. The problem asks the user to type a name, th ... he special character at the end of the string. However, I did not understand how to be added in the last vowel of the string.

Python String corrupted with character \

I have a program that creates for its operation another program on the user's computer. In a snippet, I set the directory the ... lable at https://ideone.com/KTAQxf from lines 4 to 24; the rest are just Main Code context. The error happens with Line 10.

Translating CMD copy command to PowerShell copy-Item

I'm trying to translate a command from cmd for the powershell but I can't. I get multiple files.txt during the month I put th ... any error messages. Can anyone give me a hint to do this process in PowerShell ? I already appreciate everyone's attention.

Remove first name and last name from a full name

I'm using the SUBSTRING_INDEX command to get the first name and last name of a field from the "names"table. SELECT SUBSTRING ... z" me_name = "Pedro da Silva Souza" If someone knows how to do this in SQL I appreciate (because in PHP it is easier hehe).

HTML5 concatenate checkbox with name text

Good Morning folks, I've done a lot of research on the subject and found nothing that related to my environment. Come on, I h ... </form> <script src="assets/js/main.js"></script> </body> </html>

Is it recommended to use memset before strncpy?

Normally when we want to copy the contents of a given string into another string we can use the functions strncat or strncp ... comes the question: Would it be necessary, for precautionary reasons in order to avoid garbage, to use memset before strncpy?

Notice: a non well formed numeric value encountered

I created a fictitious example of a discount on a person's salary, the code works, but two notices appear that I listed below ... e: a non well formed numeric value encountered in C:\xampp\htdocs\18 -POO \ 06-class.php on line 27 How can I solve them?

Firebird-concatenating fields that return from a case

SELECT DP.DATA AS DATA, S.DESCRICAO, COUNT(P.CODIGO) AS QNTD, (CASE WHEN (CAST(SUBSTRING(P.HORAFIM FROM 1 FOR 2) AS ... dure? Also, I couldn't group the same information. Signature Type with econ value. What I need is Q stay this way: 00:07:48.

SyntaxError: invalid syntax, what happened? [duplicate]

this question already has answers here : ... racter_name "is cool.") ^ SyntaxError: invalid syntax Process finished with exit code 1

Trying to understand Java print

Look at the code below; public class Dois { public static void main(String[] args) { int a = 3; int b ... lt is 72, but I thought it was for the result to be 7 + 2 that would give 9. Why did he print 72? Is he following any rules?

Concatenate Strings in Java Loops-StringBuilder or'+'?

Java allows us to concatenate Strings in Java using only the ' + ' operator String str = "a" + "b" + "c"; Is a simple way ... s += "a"; } System.out.println("Total time: " + (System.currentTimeMillis() - initialTime)); }

How to concatenate multiple Strings in Python?

The following method c.filtraNome(nome) performs a query in the bank (sqlite3 ), however, I don't know how I can group each f ... nome para pesquisa: ") print(c.filtraNome(nome)) How can I concatenate the fields returned from the query in Python ?

Combining two lists in Python

I need a code that finds out the possible passwords in a universe of LLLDDD (L=letter, d=digit), I found it easier to apply t ... dpossiveis: senhas.append(lpossiveis[i], dpossiveis[i]) return senhas But it is not creating the third list.