Browse Source

Some trick with Python

master 20210305
Julio Biason 4 years ago
parent
commit
59b36aa4a6
  1. 14
      content/research/python.md

14
content/research/python.md

@ -0,0 +1,14 @@
+++
title = "Python"
date = 2021-03-05
[taxonomies]
tags = ["python", "file", "encoding"]
+++
## Getting the encoding of a file
```python
with open('filename') as origin:
return origin.encoding
```
Loading…
Cancel
Save