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

成都創(chuàng)新互聯(lián)公司主營酉陽土家族苗族網(wǎng)站建設的網(wǎng)絡公司,主營網(wǎng)站建設方案,app軟件定制開發(fā),酉陽土家族苗族h5小程序設計搭建,酉陽土家族苗族網(wǎng)站營銷推廣歡迎酉陽土家族苗族等地區(qū)企業(yè)咨詢
一、進入交互模式
打開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 。
網(wǎng)頁名稱:創(chuàng)新互聯(lián)Python教程:python的help函數(shù)怎么退出
分享網(wǎng)址:http://m.fisionsoft.com.cn/article/dhejegi.html


咨詢
建站咨詢
