Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Python
(view source)
Revision as of 10:16, 5 April 2015
43 bytes added
,
10:16, 5 April 2015
no edit summary
Line 89:
Line 89:
</source>
</source>
−
=
== Conditional
=
==
+
== Conditional ==
−
=
=== if/elif/else
=
===
+
=== if/elif/else ===
<source lang="python">
<source lang="python">
if a < 10:
if a < 10:
Line 100:
Line 100:
</source>
</source>
−
=
=== try/except/finally
=
===
+
=== try/except/finally ===
<source lang="python">
<source lang="python">
try:
try:
Line 110:
Line 110:
</source>
</source>
−
=
== Loops
=
==
+
== Loops ==
−
=
=== For
=
===
+
=== For ===
<source lang="python">
<source lang="python">
NumberList = [1, 3, 7, 12, 24]
NumberList = [1, 3, 7, 12, 24]
Line 123:
Line 123:
</source>
</source>
−
=
=== while
=
===
+
=== while ===
<source lang="python">
<source lang="python">
CtrlNum = 7
CtrlNum = 7
Line 131:
Line 131:
</source>
</source>
−
=
== Functions
=
==
+
== Functions ==
All arguments in Python are passed by reference, if you change a variable value inside a function it will be changed at the calling function.
All arguments in Python are passed by reference, if you change a variable value inside a function it will be changed at the calling function.
<source lang="python">
<source lang="python">
Line 141:
Line 141:
print arg
print arg
</source>
</source>
+
+
== Files ==
+
== Class ==
+
== MySQLdb ==
+
== os.system() ==
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version