Posts by Kael Souza • 181 points
6 posts
-
2
votes1
answer77
viewsQ: Were the Wrapper classes depreciated in Java?
I’m following a sequence of old video lessons, in the video, Java 7 is used and the following code compiles: Long var3 = new Long("100"); I tried to compile and received the following message: Note:…
-
0
votes1
answer90
viewsQ: Does the Pdostatement bindValue() not work with the table name?
Well, I have this code: public function Ler($tabela="funcionarios"){ $this->sql = $this->pdo->prepare("SELECT * FROM :tabela"); $this->sql->bindValue(':tabela',$tabela);…
-
4
votes1
answer516
viewsQ: What does & Python mean? What is your name? is an operator?
I was looking over the loop while in Python, and everything was going well, but suddenly I see: "&", that even searching I could not find anything about. i = 0 while i < 5 : print(i) i =…
-
9
votes2
answers643
viewsQ: How does the int function handle the n character?
I created a list: usuarios = ['123\n','123\n4'] I tried to turn the index 0 into integer using the int() int(usuarios[0]) Upshot: 123 But when I tried to do the same with index 1: int(usuarios[1])…
-
2
votes2
answers399
viewsQ: Is there a method in Python similar to x.find(string), but which returns all occurrences?
For example, I have a string with several occurrences of a: a = 'abcdefhanmakaoa' If I use the method find, I can only find the index of the first occurrence. There is some native method/function…
-
0
votes2
answers1297
viewsQ: What is the difference between string.split(',') and string.rsplit(',') in python?
Using these lines in the python terminal, I couldn’t find any difference between them. I searched but found nothing about, at least in Portuguese. What would be the difference between them ? x =…