print tag

18 questions


1 answers
360 views
0
Print all 8 patterns using the if statement

It's java. Use the if statement XOXOXO---XOXOXOX--XOXOXO-X-XOXOXO--XXOXOXOOX-XOXOXO-XOXOXOXOOXXXOXOXOXXOI want to print all eight of these, but if I enter all nine spaces with - that is, -----, how do...

1 years ago

1 answers
137 views
0
To output variables & properties for an object

Does Python have a function like print_r of PHP?I have to see the status of the object when I debug it.Is there a similar function?


1 answers
149 views
0
How do I print XML data in Java in a good way?

There is a Java string that has no line feed and is not indented. I want to make this string look good. How shall I do it?String unformattedXml = <tag><nested>hello</nested></tag&...

2 years ago

2 answers
168 views
0
I'd like to know how to print multiple lines from Python

Hello, I'm a beginner at Python.a=10b=7c=5d=9e=8f=2print(a,b,c,d,e,f)>>> 10 7 5 9 8 2How do I print out by breaking it into multiple lines? 10 7 59 8 23 lines per line, 2 lines in total, or 1...

2 years ago

1 answers
143 views
0
Python print output delay

print('A',end=)time.sleep(1)print('B',end=)time.sleep(1)print('C')time.sleep(1)print('D')I was expecting ABCD to print out in a second, but...There is no delay unless end='\n'.What are some ways?

2 years ago

1 answers
84 views
0
Please tell me about * and sep in print (*[1,2,3], step=')

Hello :) School solves the descending output problem I solved it like thiss = sorted(list(input()))[::-1]Looking at the other answer,print(*sorted(input())[::-1],sep='')*and sep. It's my first time se...

2 years ago

2 answers
134 views
0
Output a function that is not executed Python separately

running = trueWhile running: Guess= str(Enter the code:) If guess=='b2310' Print ('Ko Byung-jae') If guess=='b2321' Print ('Precious Award') If guess=='mk' running = falseprint ('end')If you o...

2 years ago

2 answers
166 views
0
I want to print letters and numbers alternately on Python.

1 #!/usr/bin/env python 2 3 import os 4 import subprocess 5 import sys 6 import shlex 7 import matplotlib.pyplot as plt 8 import re 9 10 def runCommand(command): 11 popenArgs = shlex.split(command) 1...

2 years ago

1 answers
94 views
0
What should I do when I want to find the location where the Python print is printed?

I have imported a lot of Python libraries and have been using theminit of any file during error correction.I accidentally copied print 'en' to py and pressed the wrong key to turn off the file window....

2 years ago

1 answers
112 views
0
How to output XML in a good way?

How can I print out the xml beautifully?There is an xml file like this<foo> <bar> <type foobar=1/> <type foobar=2/> </bar></foo>When running Python code import xml....

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.