8000 Merge pull request #40 from saeiddrv/draft · alimogh/PythonPersianTutorial@2904d14 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2904d14

Browse files
author
Saeid Darvish
authored
Merge pull request saeiddrv#40 from saeiddrv/draft
updating#00126
2 parents 2928908 + 41850e2 commit 2904d14

File tree

14 files changed

+1396
-31
lines changed

14 files changed

+1396
-31
lines changed
234 KB
Loading

_templates/sphinx_minoo_theme/includes/header.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<meta name="viewport" content="width=device-width, initial-scale=1">
44
<meta name="google-site-verification" content="IK2uIb0qP_6M9oopAJzjrXSMXGbyifQfX7nRlr2b0vI" />
55
<link rel="alternate" href="https://python.coderz.ir/{{ pagename }}.html" hreflang="fa-ir" />
6+
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vazir-font@28.0.0/dist/font-face.css">
67

78
{{ metatags }}
89

@@ -38,7 +39,7 @@
3839
{% if theme_direction == "ltr" %}
3940
<link rel="stylesheet" type=text/css href="{{ pathto('_static/minoo-ltr.css', 1) }}">
4041
{% else %}
41-
<link rel="stylesheet" type=text/css href="{{ pathto('_static/minoo-20210327-2.css', 1) }}">
42+
<link rel="stylesheet" type=text/css href="{{ pathto('_static/minoo-20210407.css', 1) }}">
4243
{% endif %}
4344

4445
{%- block linktags %}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

_templates/sphinx_minoo_theme/static/minoo-20210327-2.css renamed to _templates/sphinx_minoo_theme/static/minoo-20210407.css

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,21 @@ list[purple:[title:AB47BC,sub:CE93D8]-green:[title:66BB6A,sub:A5D6A7]-blue[title
88
box[note,attention[body:90CAF9,title:42A5F5]-tip,important[body:80CBC4,title:26A69A]-hint,warning[body:FFAB91,title:FF7043]-error,danger[body:EF9A9A,title:EF5350]-caution[body:C5E1A5,title:9CCC65]-admonition[body:B0BEC5,title:78909C]]
99
*/
1010

11+
12+
1113
/* sphinx_rtd_theme fonts */
1214
@font-face{font-family:"Inconsolata";font-style:normal;font-weight:400;src:local("Inconsolata"),url(fonts/Inconsolata.ttf) format("truetype")}@font-face{font-family:"Inconsolata";font-style:normal;font-weight:700;src:local("Inconsolata Bold"),local("Inconsolata-Bold"),url(fonts/Inconsolata-Bold.ttf) format("truetype")}@font-face{font-family:"Lato";font-style:normal;font-weight:400;src:local("Lato Regular"),local("Lato-Regular"),url(fonts/Lato-Regular.ttf) format("truetype")}@font-face{font-family:"Lato";font-style:normal;font-weight:700;src:local("Lato Bold"),local("Lato-Bold"),url(fonts/Lato-Bold.ttf) format("truetype")}@font-face{font-family:"Roboto Slab";font-style:normal;font-weight:400;src:local("Roboto Slab Regular"),local("RobotoSlab-Regular"),url(fonts/RobotoSlab-Regular.ttf) format("truetype")}@font-face{font-family:"Roboto Slab";font-style:normal;font-weight:700;src:local("Roboto Slab Bold"),local("RobotoSlab-Bold"),url(fonts/RobotoSlab-Bold.ttf) format("truetype")}
1315

1416
/* HTML elements */
15-
body{font-family:'Behdad',"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;font-weight:normal;color:#212121;min-height:100%;font-size:16px;overflow-x:hidden}
17+
body{font-family:vazir, sans-serif;font-weight:normal;color:#252525;min-height:100%;font-size:1.5rem;overflow-x:hidden}
1618
html{height:100%}
1719
a,ul>li>a,ol>li>a{text-decoration:none!important;color:#5C6BC0;padding:0}
1820
a:hover,ul>li>a:hover,ol>li>a:hover{color:#66BB6A}
1921
i{vertical-align:middle}
2022
h1,h2,h3,h4,h5,h6{font-weight:bold;color:#000000;display:inline-block}
2123
h1,h2,h3{padding:10px 15px 10px 0}
2224
h1{background-color:#5C6BC0;color:#FFFFFF;line-height:26px;border-right:5px #E8EAF6 solid}
23-
p{line-height:24px;margin:0;font-size:16px}
25+
p{line-height:24px;margin:0;font-size:1.5rem}
2426
h1{font-size:150%}
2527
h2{font-size:125%}
2628
h3{font-size:115%}
@@ -37,8 +39,8 @@ code,kbd,pre,samp{background-color:#E8EAF6;border-radius:0;border:none;direction
3739
code,kbd,samp{padding:2px 6px;white-space:pre}
3840
code{color:#212121}
3941
pre{margin:0;overflow-wrap:normal;text-align:left}
40-
ul,ol{padding-right:24px;font-size:16px}
41-
ul li{list-style:disc;font-size:16px}
42+
ul,ol{padding-right:24px;font-size:1.5rem}
43+
ul li{list-style:disc;font-size:1.5rem}
4244
dl dt{font-weight:bold}
4345
dl dd{margin:0 24px 12px 0}
4446

@@ -80,7 +82,7 @@ box-shadow: 0px 0px 1px 1px rgba(66,66,66,1);}
8082
#body-donate{width:100%;height:auto;display:inline-block;color:#fff;margin-bottom:24px;margin-top:2px;position:relative;}
8183
#body-top>a{display:inline-block;height:auto;vertical-align:bottom;height:auto}
8284
#body-top>a:hover{color:#66BB6A}
83-
#body-top>span{width:auto;height:28px;line-height:16px;display:inline-block;vertical-align:bottom}
85+
#body-top>span{width:auto;height:28px;line-height:1.5rem;display:inline-block;vertical-align:bottom}
8486
#body-top>a>i,#body-top>span>i{display:inline-block}
8587
#top-src{float:left}
8688
.top-src{float:left;margin-right:24px}
@@ -234,23 +236,13 @@ ul li{text-align:justify}
234236
.red{color:#E65100}
235237
.emoji-size{font-size:20px;color:#E65100}
236238
p,blockquote{text-align:justify}
237-
body{font-size:16px}
238-
@font-face{font-family:'IranianSans';src:url('fonts/IranianSansWeb-Regular.woff');font-weight:normal;font-style:normal}
239+
body{font-size:1.5rem}
239240
.table-ltr{direction:ltr !important;text-align:center;margin-bottom: -24px !important;}
240241
.table-ltr th{text-align:center !important}
241242
.reportmenufield{background-color:#ec407a !important}
242243
.reportmenufield:hover{border-right:5px #f48fb1 solid !important}
243244
.exercisesmenufield{background-color:#ef5350 !important}
244245
.exercisesmenufield:hover{border-right:5px #ef9a9a solid !important}
245-
@font-face {
246-
font-family: 'Behdad';
247-
src: url('fonts/Behdad-Regular.otf'),
248-
url('fonts/Behdad-Regular.woff2') format('woff2'),
249-
url('fonts/Behdad-Regular.woff') format('woff'),
250-
url('fonts/Behdad-Regular.ttf') format('truetype');
251-
font-weight: normal;
252-
font-style: normal;
253-
}
254246
h1 a.toc-backref, h2 a.toc-backref{color:#fff !important}
255247

256248

@@ -280,7 +272,7 @@ color: #fff !important;
280272
display: block;
281273
width: 100%;
282274
float: none;
283-
padding: 16px;
275+
padding: 1.5rem;
284276
background-color: #4CAF50;
285277
color: #fff;
286278
font-weight: 800;

index.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
jgs`-.-` '.____.' `.____.'
2121

2222

23-
این کتاب تلاشی است برای آموزش زبان برنامه‌نویسی پایتون (Python) بر پایه‌ پیاده‌سازی استاندارد آن (CPython)، به شکلی کامل و ساده که بتواند هر دو شاخه از پایتون (نسخه‌های 3x و 2x) را البته با محوریت نسخه 3x پوشش دهد و همچنین برای افرادی که تاکنون سابقه‌ برنامه‌نویسی نداشته‌اند نیز کاربردی و مفید باشد. یادگیری پایتون نیازی به پیش‌زمینه برنامه‌نویسی ندارد و تنها پیش‌نیاز آن علاقه خوانندگان به فن برنامه‌نویسی است.
23+
این کتاب تلاشی است برای آموزش زبان برنامه‌نویسی پایتون (Python) بر پایه‌ پیاده‌سازی استاندارد آن (CPython)، به شکلی کامل و ساده که بتواند هر دو شاخه از پایتون (نسخه‌های 3x و 2x) را البته با محوریت نسخه 3x (به خصوص از درس هفدهم به بعد) پوشش دهد و همچنین برای افرادی که تاکنون سابقه‌ برنامه‌نویسی نداشته‌اند نیز کاربردی و مفید باشد. یادگیری پایتون نیازی به پیش‌زمینه برنامه‌نویسی ندارد و تنها پیش‌نیاز آن علاقه خوانندگان به فن برنامه‌نویسی است.
2424

2525
.. toctree::
2626
:maxdepth: 6
@@ -50,29 +50,29 @@
5050
lessons/l22
5151
lessons/l23
5252
lessons/l24
53+
lessons/l25
5354
log
5455
donate-report
5556
python-interactive
5657
python-resources
5758

5859
|
5960
60-
.. note::
61-
**این کتاب در حال توسعه می‌باشد...(سطح متوسط)**
61+
----
6262

63-
**شروع:** فروردین ۱۳۹۴ **و** **آخرین بروزرسانی:** فروردین ۱۴۰۰ [`گزارش توسعه <log.html>`__]
63+
**شروع:** فروردین ۱۳۹۴ **و** **آخرین بروزرسانی:** فروردین ۱۴۰۰ [`گزارش توسعه <log.html>`__]
6464

65-
.. note::
65+
----
6666

67-
**برای محتوای این کتاب، چهار سطح آموزشی در نظر گرفته شده است:**
67+
**برای محتوای این کتاب، چهار سطح آموزشی در نظر گرفته شده است:**
6868

69-
* **سطح پایه:** دروس ۱ تا ۵، معرفی پایتون و کسب مهارت لازم برای شروع کار با پایتون
69+
* **سطح پایه:** دروس ۱ تا ۵، معرفی پایتون و کسب مهارت لازم برای شروع کار با پایتون
7070

71-
* **سطح مقدماتی:** دروس ۶ تا ۱۱، آشنایی با اجزا و ساختارهای ابتدایی در پایتون
71+
* **سطح مقدماتی:** دروس ۶ تا ۱۱، آشنایی با اجزا و ساختارهای ابتدایی در پایتون
7272

73-
* **سطح متوسط:** دروس ۱۲ تا ؟، آشنایی با مفاهیم و ساختارهای پیچیده و ضروری در پایتون
73+
* **سطح متوسط:** دروس ۱۲ تا ؟، آشنایی با مفاهیم و ساختارهای پیچیده و ضروری در پایتون
7474

75-
* **سطح پیشرفته:** دروس ؟ تا ؟، آشنایی با مفاهیم و ماژول‌های حرفه‌ای در پایتون
75+
* **سطح پیشرفته:** دروس ؟ تا ؟، آشنایی با مفاهیم و ماژول‌های حرفه‌ای در پایتون
7676

7777

7878

lessons/l10.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
:keywords: آموزش, آموزش پایتون, آموزش برنامه نویسی, پایتون, انواع شی, انواع داده, انواع شی در پایتون, انواع داده در پایتون, پایتون
66

77

8-
درس ۱۰: فایل، ورودی و خروجی در پایتون
9-
========================================
8+
درس ۱۰: فایل، ورودی و خروجی (I/O) در پایتون
9+
======================================================
1010

1111
.. figure:: /_static/pages/10-python-input-output-file.jpg
1212
:align: center

0 commit comments

Comments
 (0)
0