Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b89e4fc4
Commit
b89e4fc4
authored
Nov 12, 2010
by
Terry Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport rev86422 for issue 10304 from py3k to 31-maint
parent
f959b7fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
Doc/tutorial/introduction.rst
Doc/tutorial/introduction.rst
+6
-5
No files found.
Doc/tutorial/introduction.rst
View file @
b89e4fc4
.. _tut-informal:
.. _tut-informal:
**********************************
**********************************
An Informal Introduction to Python
An Informal Introduction to Python
...
@@ -220,9 +220,10 @@ the following:
...
@@ -220,9 +220,10 @@ the following:
Or, strings can be surrounded in a pair of matching triple-quotes: ``"""`` or
Or, strings can be surrounded in a pair of matching triple-quotes: ``"""`` or
``'''``. End of lines do not need to be escaped when using triple-quotes, but
``'''``. End of lines do not need to be escaped when using triple-quotes, but
they will be included in the string. ::
they will be included in the string. So the following uses one escape to
avoid an unwanted initial blank line. ::
print("""
print("""
\
Usage: thingy [OPTIONS]
Usage: thingy [OPTIONS]
-h Display this usage message
-h Display this usage message
-H hostname Hostname to connect to
-H hostname Hostname to connect to
...
@@ -610,7 +611,7 @@ This example introduces several new features.
...
@@ -610,7 +611,7 @@ This example introduces several new features.
>>> a, b = 0, 1
>>> a, b = 0, 1
>>> while b < 1000:
>>> while b < 1000:
... print(b, end='
')
... print(b, end='
,
')
... a, b = b, a+b
... a, b = b, a+b
...
...
1
1 2 3 5 8 13 21 34 55 89 144 233 377 610 987
1
,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment