string tag

223 questions


1 answers
263 views
0
Python String Data Compression Question (no more than two iterations)

Hello. I have a question about compressing Python string data.AAAAAABBCCCDDDZZZWW. These stringsI compressed up to A5B2C3D3Z3W2 If you want to compress characters that are repeated less than two times...

1 years ago

0 answers
428 views
0
Sort Python String Order

How do I arrange strings regularly in Python in the order I want them to be?For example, if the order you want is 1423, iloveyoutooo =>ivloeuyotoooLike this+So you cut 4 pieces and arrange them in ...

1 years ago

1 answers
408 views
0
Questions about advanced usage of string formatting

''' 3x 12-------- 36'''I'm trying to express this expression in code. I've tried the bottom four#try1a=3b=12print('%8d' %a)print('%-6s%-1d'%('x',b))print('--------')print('%8d'%(a*b))#try2a=3b=12pri...

1 years ago

2 answers
433 views
0
Differences Between Python Single Quotation and Embedded Function str()

I would like to know the difference between Python single quotation and built-in function str().s1='{input:{action:read, role:User, request:[gender, address, birthDate, familyName, telephone]}'s2=str(...

1 years ago

1 answers
81 views
0
I want to create a split class for String.

java.lang.IndexOutOfBoundsException, I understand what this error means, but I don't understand why b is output 3 times and a is output 2 times.Please let me knowpublic class KString extensions Object...

2 years ago

1 answers
131 views
0
Is there a way to check the wording displayed on iOS?

We are developing iOS apps that support multiple languages.In this iOS app, I would like to have the same wording displayed by iOS displayed in multiple languages.For example, if you want access to a ...

2 years ago

1 answers
184 views
0
Why do I use char[] instead of string when I use password?

When you say getText() in Swing, the return value is String If you look at the return value of the password field getPassword, it's char[].If you look at that, String has security issues or uses it mo...


1 answers
93 views
0
I want to change the string from Python to float or int

From Python30.33333 to float 30.333330 like int 30What should I do to change my brother?


1 answers
99 views
0
I want to add string and int

I thought it would be easy, but it's hard ㅜㅜㅜWhat should I do to make string name become John21 in the code below?string name = John;int age = 21;


1 answers
158 views
0
How do I compare strings?

I always used == when comparing strings, but when I changed it to .equals() because of a bug while coding last time, It's fixed. Why did == get a bug? What's the difference from equals()

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.