Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
bf58d801
Kaydet (Commit)
bf58d801
authored
Eyl 03, 2009
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#6828: fix wrongly highlighted blocks.
üst
eb4781c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
introduction.rst
Doc/tutorial/introduction.rst
+9
-5
No files found.
Doc/tutorial/introduction.rst
Dosyayı görüntüle @
bf58d801
...
@@ -138,7 +138,6 @@ its magnitude (as a float) or ``z.real`` to get its real part. ::
...
@@ -138,7 +138,6 @@ its magnitude (as a float) or ``z.real`` to get its real part. ::
4.0
4.0
>>> abs(a) # sqrt(a.real**2 + a.imag**2)
>>> abs(a) # sqrt(a.real**2 + a.imag**2)
5.0
5.0
>>>
In interactive mode, the last printed expression is assigned to the variable
In interactive mode, the last printed expression is assigned to the variable
``_``. This means that when you are using Python as a desk calculator, it is
``_``. This means that when you are using Python as a desk calculator, it is
...
@@ -152,7 +151,6 @@ somewhat easier to continue calculations, for example::
...
@@ -152,7 +151,6 @@ somewhat easier to continue calculations, for example::
113.0625
113.0625
>>> round(_, 2)
>>> round(_, 2)
113.06
113.06
>>>
This variable should be treated as read-only by the user. Don't explicitly
This variable should be treated as read-only by the user. Don't explicitly
assign a value to it --- you would create an independent local variable with the
assign a value to it --- you would create an independent local variable with the
...
@@ -193,7 +191,9 @@ next line is a logical continuation of the line::
...
@@ -193,7 +191,9 @@ next line is a logical continuation of the line::
Note that newlines still need to be embedded in the string using ``\n``; the
Note that newlines still need to be embedded in the string using ``\n``; the
newline following the trailing backslash is discarded. This example would print
newline following the trailing backslash is discarded. This example would print
the following::
the following:
.. code-block:: text
This is a rather long string containing
This is a rather long string containing
several lines of text just as you would do in C.
several lines of text just as you would do in C.
...
@@ -209,7 +209,9 @@ they will be included in the string. ::
...
@@ -209,7 +209,9 @@ they will be included in the string. ::
-H hostname Hostname to connect to
-H hostname Hostname to connect to
"""
"""
produces the following output::
produces the following output:
.. code-block:: text
Usage: thingy [OPTIONS]
Usage: thingy [OPTIONS]
-h Display this usage message
-h Display this usage message
...
@@ -224,7 +226,9 @@ in the source, are both included in the string as data. Thus, the example::
...
@@ -224,7 +226,9 @@ in the source, are both included in the string as data. Thus, the example::
print hello
print hello
would print::
would print:
.. code-block:: text
This is a rather long string containing\n\
This is a rather long string containing\n\
several lines of text much as you would do in C.
several lines of text much as you would do in C.
...
...
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