Solved: Python Error: IndentationError: expected an indented block problem

Blogger Maotouhu () takes you to Go to New World? Blog homepage: Maotouhu’s blog “Complete Column of Interview Questions” Articles with pictures and texts Vivid images Simple and easy to learn! Everyone is welcome to step in~ “IDEA Development Cheats Column” Learn the common operations of IDEA and double your work efficiency~ “Master Golang in […]

JAVA implements the compression of formatted XML, removes spacing, indentation, and line breaks, making it smaller and compressed.

When I first started using the online XML formatting website, I wanted to write a java program with the same function. Such as: online XML formatting Or: Online XML Formatting 2 The initial idea was to use an XML parsing library (such as DOM) to parse XML and serialize the results, mainly using Transformer code […]

Quill editor customizes audio, video, and inline styles (character borders, first line indentation)

Article directory 1. Audio 1. Customized content 2. Introduction and use 2. Video 1. Customized content 2. Introduction and use 3. Add inline style to the text (text border) 1. No drop-down box (1) Custom content (2) Introduction and use 2. With a drop-down box (1) Custom content (2) Introduction and use 4. Add an […]

[Solved] maven multi-environment IDEA startup report Do not use @ for indentation error solution

The maven multi-environment configuration is as follows: <profiles> <!–This is the development environment–> <profile> <id>druid</id> <properties> <!– Environment ID, which needs to correspond to the name of the configuration file –> <activatedEnv>druid</activatedEnv> </properties> <activation> <!– default environment –> <activeByDefault>true</activeByDefault> </activation> </profile> <!–This is the production environment–> <profile> <id>prod</id> <properties> <activatedEnv>prod</activatedEnv> </properties> </profile> </profiles> application.yml is […]

[Solved] Solve VSCode editing vue project error Expected indentation of 2 spaces but found 4

Analysis of the reason for the error: The reason for this is that if the babel-eslint feature is enabled in the project created by the vue cli we use, the project automatically generates the .eslintrc.js file for us, the content is as follows: module.exports = { root: true, env: { node: true }, extends: [ […]

[Solved] PythonIndentationError: expected an indented block

magicians=[‘alice’,’david’,’carolina’] for magician in magicians: print(f'{<!– –>magician.title()},that was a great trick !’) Results: C:\Users\18084\Desktop\python\python>python 4-magicians.py File “C:\Users\18084\Desktop\python\python\4-magicians.py”, line 123 print(f'{<!– –>magician.title()},that was a great trick !’) ^ IndentationError: expected an indented block The function call print() should be indented but it is not. Python does not find the block of code it expects to be […]