Re: Weird Stuff (Markdown, syntax ...) (Posting On Python-List Prohibited)

Liste des GroupesRevenir à cl python 
Sujet : Re: Weird Stuff (Markdown, syntax ...) (Posting On Python-List Prohibited)
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.python
Date : 26. May 2024, 09:42:14
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v2up4l$3ajrn$7@dont-email.me>
References : 1
User-Agent : Pan/0.158 (Avdiivka; )
On Sun, 26 May 2024 06:28:51 GMT, Gilmeh Serda wrote:

The web claims (I think on all pages I've read about Markdown and
Python) that this code should work, with some very minor variants on the
topic:
 
```python
 
import os
 
with open(os.path.join('/home/user/apath', 'somefile')) as f:
    print(f.read())
```

I just tried it in a Jupyter notebook. Changed the cell type to Markdown,
pasted the above as its contents, hit shift-enter, and it looked just like
syntax-coloured Python code.

Date Sujet#  Auteur
26 May 24 * Re: Weird Stuff (Markdown, syntax ...) (Posting On Python-List Prohibited)2Lawrence D'Oliveiro
26 May 24 `- Re: Weird Stuff (Markdown, syntax ...) (Posting On Python-List Prohibited)1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal