Difference between revisions of "Python"
Jump to navigation
Jump to search
(40 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{Infobox software | {{Infobox software | ||
| name = Python | | name = Python | ||
− | | logo = Python-logo- | + | | logo = Python-logo-generic.svg |
− | | | + | | logo size = 180px |
+ | | logo alt = Python(tm) | ||
| caption = | | caption = | ||
| developer = | | developer = | ||
Line 11: | Line 12: | ||
| latest preview version = | | latest preview version = | ||
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --> | | latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --> | ||
− | | installed version = | + | | installed version = 3.7.9 64-bits |
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --> | | installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --> | ||
| status = Active | | status = Active | ||
Line 18: | Line 19: | ||
| platform = | | platform = | ||
| website = [http://www.python.org python.org] | | website = [http://www.python.org python.org] | ||
− | | resources = | + | | resources = {{Infobox tsg |
− | + | | child = yes | |
+ | | header2 = Workshop | ||
+ | | data2 = {{bulleted list | ||
+ | | [[Workshop: Python for behavioural scientists|Python for behavioural scientists]] | ||
+ | }} | ||
+ | }} | ||
}} | }} | ||
− | [[wikipedia:Python_(programming_language)|Python]] is a general-purpose, high-level programming language. It is also a type of snake, but one is arguably more | + | [[wikipedia:Python_(programming_language)|Python]] is a general-purpose, high-level programming language. It is also a [[wikipedia:Python_%28genus%29|type of snake]] and a [[wikipedia:Python_%28Efteling%29|rollercoaster]], but one is arguably more relevant to your research than the others. <br/> |
+ | On the lab computers, there is support for Spyder, PyCharm and [[Psychopy]]. | ||
<!-- Table of Contents will be generated here --> | <!-- Table of Contents will be generated here --> | ||
− | == | + | ==Psychopy== |
+ | {{see |Psychopy}} | ||
− | + | When your script fails to load in Psychopy, because you need packages that are not installed on our lab computers, please contact TSG. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Usage == | == Usage == | ||
Line 178: | Line 44: | ||
You should see the following result: | You should see the following result: | ||
− | <syntaxhighlight lang=" | + | <syntaxhighlight lang="python" overflow:auto;"> |
number of argument: 2 | number of argument: 2 | ||
argv[0]: ./testArgs.py | argv[0]: ./testArgs.py | ||
Line 184: | Line 50: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | ==See Also== | + | ==See Also== |
*[[Psychopy]] | *[[Psychopy]] | ||
− | + | *[[Workshop: Python for social scientists]] | |
− | ==References== | + | <!-- |
− | <references /> | + | ==References== |
+ | <references /> --> | ||
==External Links== | ==External Links== | ||
*{{Official website|http://www.python.org}} | *{{Official website|http://www.python.org}} |
Latest revision as of 15:42, 23 April 2024
Installed version | 3.7.9 64-bits |
---|---|
Development status | Active |
Written in | Python |
Website | python.org |
Python is a general-purpose, high-level programming language. It is also a type of snake and a rollercoaster, but one is arguably more relevant to your research than the others.
On the lab computers, there is support for Spyder, PyCharm and Psychopy.
Psychopy
When your script fails to load in Psychopy, because you need packages that are not installed on our lab computers, please contact TSG.
Usage
Example: TestArgs.py
Execute the following script within the commandline (CMD): python testArgs.py a.
You should see the following result:
number of argument: 2
argv[0]: ./testArgs.py
argv[1]: a