Difference between revisions of "Python"
Marc Saric (talk | contribs) |
Marc Saric (talk | contribs) |
||
Line 14: | Line 14: | ||
To be somehow usefull, here is the proof, that python is good and Java and Perl are evil: | To be somehow usefull, here is the proof, that python is good and Java and Perl are evil: | ||
− | + | [BR] | |
<syntaxhighlight lang="python"> | <syntaxhighlight lang="python"> | ||
print "Hello world!" | print "Hello world!" | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | [BR] | |
Although this will have to be written as | Although this will have to be written as | ||
− | + | [BR] | |
<syntaxhighlight lang="python"> | <syntaxhighlight lang="python"> | ||
print("Hello world!") | print("Hello world!") | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | [BR] | |
[http://www.python.org/download/releases/3.0/ from now on], still not bad compared to Java or Visual Basic. | [http://www.python.org/download/releases/3.0/ from now on], still not bad compared to Java or Visual Basic. | ||
If you still don't believe me, try this | If you still don't believe me, try this | ||
− | + | [BR] | |
<syntaxhighlight lang="python"> | <syntaxhighlight lang="python"> | ||
from __future__ import braces | from __future__ import braces | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | [BR] | |
And if you still don't believe me, read this | And if you still don't believe me, read this |
Revision as of 22:26, 19 July 2014
And now for something completely different...
Welcome to my personal Python homepage. At the moment you will only find some links to other sites, as I haven't had time to put together some stuff of general interest.
Python is a portable, object-oriented and last but not least easy-to-learn scripting language which can be used for everything from throwaway-scripting to complete applications .
Because it is quite easy to read and to understand, and because it is portable and especially because much stuff for processing PDB-files (containing information about molecular models (Proteins, RNA, organic and inorganic molecules) already existed, I had chosen Python as the implementation language for some data-parsing and conversion tools I desperately needed during and shortly after my diploma-work.
More recently I have written some glue-logic for my Ph.D. work (macromolecular crystallography) which does more or less similar things as the GROMOS96-scripts: Input-generation and some logfile-parsing.
I got lucky in being paid to program in Python during my industry-carreer at Exelixis, BASF Plant Science as well as BASF Business Services.
And of course Python is essential, if you like Pymol, a molecular graphics program which uses it as its extension and scripting language.
To be somehow usefull, here is the proof, that python is good and Java and Perl are evil: [BR]
print "Hello world!"
[BR] Although this will have to be written as [BR]
print("Hello world!")
[BR] from now on, still not bad compared to Java or Visual Basic.
If you still don't believe me, try this [BR]
from __future__ import braces
[BR]
And if you still don't believe me, read this
Still no content here...
Asteroids
Because there is an ultra-cool Java-client for the Asteroids-bot competition on heise.de, I'd like to port some of that stuff to Python. See what comes out of that...
Links
- http://www.heise.de/ct/creativ/08/02/details/
- http://www.heise.de/ct/projekte/machmit/asteroids/wiki
- http://www.heise.de/ct/foren/S-c-t-9-2008-S-176-creativ-08-Programmierwettbewerb/forum-135513/list/
Other exits
- Some usefull extensions
- iPython -an enhanced interactive Python shell.
- Matplotlib -Reporting
- Reportlab -Plotting
- Python and Bioinformatics