Уведомления

Группа в Telegram: @pythonsu

#1 Май 31, 2016 14:30:08

newpy
Зарегистрирован: 2014-08-12
Сообщения: 56
Репутация: +  0  -
Профиль   Отправить e-mail  

Как работать с хелпом? Что не так делаю?

Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:38:48) [MSC v.1900 32 bit (In
tel)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
>>> date()
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
NameError: name ‘date’ is not defined
>>> now()
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
NameError: name ‘now’ is not defined
>>> today
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
NameError: name ‘today’ is not defined
>>> today()
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
NameError: name ‘today’ is not defined
>>> date()
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
NameError: name ‘date’ is not defined
>>> DATE()
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
NameError: name ‘DATE’ is not defined
>>> Date()
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
NameError: name ‘Date’ is not defined
>>> help
Type help() for interactive help, or help(object) for help about object.
>>> help(date)
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
NameError: name ‘date’ is not defined
>>> help('date')
No Python documentation found for ‘date’.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.

>>> help()

Welcome to Python 3.5's help utility!

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://docs.python.org/3.5/tutorial/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules. To quit this help utility and
return to the interpreter, just type “quit”.

To get a list of available modules, keywords, symbols, or topics, type
“modules”, “keywords”, “symbols”, or “topics”. Each module also comes
with a one-line summary of what it does; to list the modules whose name
or summary contain a given string such as “spam”, type “modules spam”.

help> date
No Python documentation found for ‘date’.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.

help> date()
No Python documentation found for ‘date()’.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.

help> Date
No Python documentation found for ‘Date’.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.

help>

You are now leaving help and returning to the Python interpreter.
If you want to ask for help on a particular object directly from the
interpreter, you can type “help(object)”. Executing “help('string')”
has the same effect as typing a particular string at the help> prompt.
>>> date
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
NameError: name ‘date’ is not defined
>>> help()

Welcome to Python 3.5's help utility!

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://docs.python.org/3.5/tutorial/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules. To quit this help utility and
return to the interpreter, just type “quit”.

To get a list of available modules, keywords, symbols, or topics, type
“modules”, “keywords”, “symbols”, or “topics”. Each module also comes
with a one-line summary of what it does; to list the modules whose name
or summary contain a given string such as “spam”, type “modules spam”.

help>



__________________
py3.7.8-64 win10-64

Офлайн

#2 Май 31, 2016 14:54:45

py.user.next
От:
Зарегистрирован: 2010-04-29
Сообщения: 9992
Репутация: +  857  -
Профиль   Отправить e-mail  

Как работать с хелпом? Что не так делаю?

https://docs.python.org/3/reference/index.html
https://docs.python.org/3/library/index.html

import time
help(time)

import datetime
help(datetime)



Отредактировано py.user.next (Май 31, 2016 14:55:59)

Офлайн

#3 Май 31, 2016 15:51:10

ZerG
Зарегистрирован: 2012-04-05
Сообщения: 2627
Репутация: +  61  -
Профиль   Отправить e-mail  

Как работать с хелпом? Что не так делаю?

Поставить Pycharm или другую людскую IDE и пользоваться хелпом в ней ровно как и писать код и юзать автокоплит готу и другие плюхи



Влодение рускай арфаграфией - это как владение кунг-фу: настаящие мастира не преминяют ево бес ниабхадимости

Офлайн

#4 Июнь 1, 2016 00:43:50

newpy
Зарегистрирован: 2014-08-12
Сообщения: 56
Репутация: +  0  -
Профиль   Отправить e-mail  

Как работать с хелпом? Что не так делаю?

ZerG
Поставить Pycharm
у меня уже IDLE стоит.. надо снести? или уживутся?



__________________
py3.7.8-64 win10-64

Офлайн

#5 Июнь 1, 2016 08:12:45

doza_and
От:
Зарегистрирован: 2010-08-15
Сообщения: 4138
Репутация: +  253  -
Профиль   Отправить e-mail  

Как работать с хелпом? Что не так делаю?

уживутся



Офлайн

#6 Июнь 1, 2016 09:34:32

ZerG
Зарегистрирован: 2012-04-05
Сообщения: 2627
Репутация: +  61  -
Профиль   Отправить e-mail  

Как работать с хелпом? Что не так делаю?

IDLE это нечто такое не для слабых духом.
По непонятной причине его пиарят разработчики - но ….



Влодение рускай арфаграфией - это как владение кунг-фу: настаящие мастира не преминяют ево бес ниабхадимости

Офлайн

Board footer

Модераторировать

Powered by DjangoBB

Lo-Fi Version