Diferència entre revisions de la pàgina «Recursos en Python»

De Wiki d'en Jordi Binefa
Dreceres ràpides: navegació, cerca
(Guies, llibres i pdf)
m (Portabilitat de Windows a Linux)
 
(Hi ha 3 revisions intermèdies del mateix usuari que no es mostren)
Línia 9: Línia 9:
  
 
[http://adamlamers.com/post/NUBSPFQJ50J1 Writing extensions for Python 3 in C - Part 1]
 
[http://adamlamers.com/post/NUBSPFQJ50J1 Writing extensions for Python 3 in C - Part 1]
 +
 +
[https://www.scipy-lectures.org/advanced/interfacing_with_c/interfacing_with_c.html Interfacing with C]
  
 
= Turtle graphics =
 
= Turtle graphics =
Línia 14: Línia 16:
  
 
[https://hourofpython.trinket.io From Blocks to Code with Trinket]
 
[https://hourofpython.trinket.io From Blocks to Code with Trinket]
 +
 +
= Qt =
 +
== PyQt ==
 +
[http://pyqt.sourceforge.net/Docs/PyQt5/installation.html Installing PyQt5]
 +
 +
== pyside2 ==
 +
[https://wiki.qt.io/Qt_for_Python/GettingStarted/X11 Qt for Python/GettingStarted/X11]
 +
 +
= Portabilitat de Windows a Linux =
 +
Quan copieu un codi desenvolupat en Windows (amb ''shebang'' '''#!/usr/bin/env python3''' ) i el porteu a GNU/Linux us pot sortir un error com aquest:
 +
 +
chmod +x fetAwindows.py
 +
./fetAwindows.py
 +
/usr/bin/env: «python3\r»: El fitxer o directori no existeix
 +
 +
Per a arranjar-ho podeu fer servir el paquet '''dos2unix''':
 +
 +
sudo apt install dos2unix
 +
 +
Per a fer la conversió:
 +
 +
dos2unix fetAwindows.py
 +
 +
I ara ja ho podeu executar amb normalitat:
 +
 +
./fetAwindows.py

Revisió de 10:17, 18 abr 2019

Guies, llibres i pdf

Python 3 per a no programadors

Think Python. How to Think Like a Computer Scientist

Taller de Python y sus ejemplos

How To Install Python 3 and Set Up a Local Programming Environment on Debian 8

Writing extensions for Python 3 in C - Part 1

Interfacing with C

Turtle graphics

From docs.python.org

From Blocks to Code with Trinket

Qt

PyQt

Installing PyQt5

pyside2

Qt for Python/GettingStarted/X11

Portabilitat de Windows a Linux

Quan copieu un codi desenvolupat en Windows (amb shebang #!/usr/bin/env python3 ) i el porteu a GNU/Linux us pot sortir un error com aquest:

chmod +x fetAwindows.py
./fetAwindows.py
/usr/bin/env: «python3\r»: El fitxer o directori no existeix

Per a arranjar-ho podeu fer servir el paquet dos2unix:

sudo apt install dos2unix

Per a fer la conversió:

dos2unix fetAwindows.py

I ara ja ho podeu executar amb normalitat:

./fetAwindows.py