223 questions
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...
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 ...
''' 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...
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(...
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...
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 ...
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...
From Python30.33333 to float 30.333330 like int 30What should I do to change my brother?
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;
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()
- 1 - | » |
© 2025 OneMinuteCode. All rights reserved.