日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
創(chuàng)新互聯(lián)Python教程:python的help函數(shù)怎么退出

python的help用法及退出方式

成都創(chuàng)新互聯(lián)公司主營酉陽土家族苗族網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營網(wǎng)站建設(shè)方案,app軟件定制開發(fā),酉陽土家族苗族h5小程序設(shè)計搭建,酉陽土家族苗族網(wǎng)站營銷推廣歡迎酉陽土家族苗族等地區(qū)企業(yè)咨詢

一、進(jìn)入交互模式

打開cmd命令行窗口,輸入python效果如下:

D:\Company\Code\python>python
Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

二、使用help()查看幫助

1、輸入help(raw_input)查看,效果如下:

>>> help(raw_input)
Help on built-in function raw_input in module __builtin__:
raw_input(...)
raw_input([prompt]) -> string
Read a string from standard input. ?The trailing newline is stripped.
If the user hits EOF (Unix: Ctl-D, Windows: Ctl-Z+Return), raise EOFError.
On Unix, GNU readline is used if enabled. ?The prompt string, if given,
is printed without a trailing newline before reading.

退出help()函數(shù)

查看過后想要退出help()函數(shù),需輸入字母q

如果使用help(object)或help(‘object’),退出時直接輸入字母q即可; 

如果是help(),輸入字母q后會出現(xiàn)help>提示符(prompt),此時再輸入字母q并按下回車鍵即可退出?;蛘呤褂肅trl+z 。


當(dāng)前標(biāo)題:創(chuàng)新互聯(lián)Python教程:python的help函數(shù)怎么退出
URL標(biāo)題:http://www.5511xx.com/article/dhejegi.html