|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
|
|
|
|
|
## 1.1 Настройка текущего каталога
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
```
|
|
|
|
|
u111-05@w10prog-04 MINGW64 ~/Desktop/python-labs (main)
|
|
|
|
|
$ git remote add upstream http://uit.mpei.ru/git/main/python-labs.git
|
|
|
|
|
|
|
|
|
@ -98,18 +98,16 @@ remote: . Processing 1 references
|
|
|
|
|
remote: Processed 1 references in total
|
|
|
|
|
To http://uit.mpei.ru/git/OgarkovIA/python-labs.git
|
|
|
|
|
437460a..502c4c5 main -> main
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 1.3-8
|
|
|
|
|
'''
|
|
|
|
|
```python
|
|
|
|
|
>>> print('Hello')
|
|
|
|
|
Hello
|
|
|
|
|
>>> h=input('Your name=')
|
|
|
|
|
Your name=Ilya
|
|
|
|
|
>>>exit()
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 1.9 Изучите предложения главного меню
|
|
|
|
|
<image src="9.png">
|
|
|
|
@ -117,38 +115,37 @@ Your name=Ilya
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 1.10
|
|
|
|
|
'''
|
|
|
|
|
```python
|
|
|
|
|
#Программа по Теме 1 Огарков Илья Александрович
|
|
|
|
|
print('Hello')
|
|
|
|
|
h=input('Your name=')
|
|
|
|
|
import os
|
|
|
|
|
os.chdir('\\Users\\u111-05\\Desktop\\python-labs\\TEMA1')
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
## 1.11
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
```python
|
|
|
|
|
import prb1
|
|
|
|
|
Hello
|
|
|
|
|
Your name=
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 1.13
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
```python
|
|
|
|
|
# Протокол по Теме 1 Огарков Илья Александрович
|
|
|
|
|
import os
|
|
|
|
|
os.chdir('\\Users\\u111-05\\Desktop\\python-labs\\TEMA1')
|
|
|
|
|
import prb1
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
# 1.14
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
```python
|
|
|
|
|
|
|
|
|
|
help(print)
|
|
|
|
|
Help on built-in function print in module builtins:
|
|
|
|
@ -176,12 +173,11 @@ input(prompt='', /)
|
|
|
|
|
|
|
|
|
|
If the user hits EOF (*nix: Ctrl-D, Windows: Ctrl-Z+Return), raise EOFError.
|
|
|
|
|
On *nix systems, readline is used if available.
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 1.15
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
```python
|
|
|
|
|
# File: tdemo_chaos.py
|
|
|
|
|
# Author: Gregor Lingl
|
|
|
|
|
# Date: 2009-06-24
|
|
|
|
@ -241,11 +237,12 @@ def main():
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
main()
|
|
|
|
|
mainloop()
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<img src="10.png">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```python
|
|
|
|
|
|
|
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
# -*- coding: cp1252 -*-
|
|
|
|
@ -378,9 +375,9 @@ if __name__ == "__main__":
|
|
|
|
|
msg = main()
|
|
|
|
|
print(msg)
|
|
|
|
|
mainloop()
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
<img src="15clock">
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|