string tag

223 questions


3 answers
40 views
0
Remove Python Last String

ss = 'python'for i in range(0,6) :print(ss[i]+'$',end='')I want to add $ in the middle of the string and make sure there is no $ in the endIs there a way to remove the last $

2 years ago

1 answers
75 views
0
How do I change a String object to a Boolean object?

How do I change a String object to a Boolean object

2 years ago

1 answers
80 views
0
Why is it string.join(list), not list.join(string)?

I think when we said we were going to make Hello-world,I think it's better to use it like Source Code 1Why can't source code 1 be executed and should I use source code 2 together?Is there a reason?my_...

2 years ago

1 answers
69 views
0
Implement only one duplicate regular expression character

import reBefore_str = The name is Chul-soo Kim, the phone number is 010-0000:0000, and the place to make a reservation is Wolha Village. The number of people is nine. The date is 2019-11-11after_str =...

2 years ago

2 answers
73 views
0
Cut Python String

You are a Python user.For example, if you have the string a=apple,banana,cow,print_1=appleprint_2=bananaprint_3=cowHow do you create a code that stores it like this?(It's a beginner. I look forward to...

2 years ago

1 answers
40 views
0
How do I update the next line in StringBuilder?

Use the StringBuilder object as shown below.StringBuilder result = new StringBuilder();result.append(someChar);I want to put a text message that updates the line to the next line, how do I do it?I sai...

2 years ago

1 answers
103 views
0
How do I make all Python strings case?

a = hoHohoTheHOHOHOMyhohohoIs there a function that changes to?I think there's something else besides turning the for doorPlease let me know


1 answers
42 views
0
What is the easiest way to repeat a string in Java?

I'm looking for a method or operator that allows me to repeat the string n times. I know how to spin a loopI want to use a simpler and more direct method than turning an unnecessary loop.String str = ...

2 years ago

1 answers
64 views
0
When do you use StringBuilder?

I don't know the difference between String and String Builder. Please explain the difference between the two.

2 years ago

1 answers
127 views
0
How do I change String to Int?

I use Java. How do you change String to int type in Java?The string has numbers like 1234 and I want to change it to 1234

« - 18 - »

© 2024 OneMinuteCode. All rights reserved.