Avatar ·

How to open an image via Python?

📁 python, работа

My code:

import osos.system(""D\\picture.jpg"")

It works in the console, but not in PyCharm... What should I do?

Avatar ·

I'll translate the answer from enSO that was mentioned in the comments, since the question was raised back in 2018. Plus I added links in Russian. Unfortunately, there aren't as many as I'd like.

The @ symbol at the beginning of a line is used for decorators of classes, functions, and methods.

Documentation for detailed reference:

(English)

(English)

Explanations and examples:

(Russian, 2012)

(Russian)

Most common decorators you will encounter:

(English), and with usage example

(English)

(English),

Off-topic, but this was discussed in the comments, and this information is also contained in the original answer.

If the @ symbol is in the middle of a string

Log in to leave an answer

Blogs