I have a question because the input() function is weird.

Asked 2 years ago, Updated 2 years ago, 65 views

Hello It's Corinne. I'm studying Python while watching the Fast Campus web development lecture, but the input() function doesn't move as I want, so I'm asking you a question.

I downloaded the version of Python 3.9.1 It's running with visual studio code.

When you run the program, a specific path is automatically entered at the first input().
I think it's working normally after the second input().

c:/python/virtual/Scripts/activate.bat This is the path that I created the virtual environment with python-mvenv.

In addition, I think I touched the tasks.json file as instructed by the Internet instructor.

I deleted the program and the virtual environment and tried to download it again, but it doesn't fit. No matter how much I googled, I couldn't figure out how to fix it.

I'd really appreciate your help!

input python vscode

2022-09-20 18:05

1 Answers

After erasing and running tasks.json, it works fine!!!
The code was as below, but I'll google what's wrong and study more!!
Thanks for your help.~

{
    // // See https://go.microsoft.com/fwlink/?LinkId=733558
    // // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Project Label",
            "type": "shell",
            "command": "python",
            "args": [
                "${file}"
            ],
            "presentation": {
                "reveal": "always",
                "panel": "new"
            },
            "options": {
                "env": {
                    "PYTHONIOENCODING": "UTF-8"
                }
            },
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}


2022-09-20 18:05

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.