哈哈哈哈-我的天啊-这是计算机专业只是.doc

哈哈哈哈-我的天啊-这是计算机专业只是.doc

ID:57672596

大小:36.50 KB

页数:8页

时间:2020-08-31

哈哈哈哈-我的天啊-这是计算机专业只是.doc_第1页
哈哈哈哈-我的天啊-这是计算机专业只是.doc_第2页
哈哈哈哈-我的天啊-这是计算机专业只是.doc_第3页
哈哈哈哈-我的天啊-这是计算机专业只是.doc_第4页
哈哈哈哈-我的天啊-这是计算机专业只是.doc_第5页
资源描述:

《哈哈哈哈-我的天啊-这是计算机专业只是.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、1)Whatcommanddoyouenterintotheterminalbash-shelltoenterintothepython3shell?python3a)-pythonpull_wordsb)-python3c)-gitgitcheckpythond)-python()e)-quit()2)Howcanweselectthesecondcityinourfavorite_citieslistdefineahead?favorite_cities=["Lagos","Chongqing","Istanbul"]favorite_cities[1]

2、a)-favorite_cities(2)b)-favorite_cities[2]c)-favorite_cities[1]d)-favorite_cities(1)3)Variablenamescancontainletters,numbersandunderscores.Theymayalsobeginwithanumber.Falsea)-Trueb)-False4)Whathappensifyouassignavaluetoavariable,andthenassignavaluetoitagain.Thepreviousvalueofthevar

3、iablewillbeoverwritten.a)-Nothingwillhappenb)-Thepreviousvalueofthevariablewillbeoverwritten.c)-thepreviousvalueofthevariablewillberemainthesame..d)-Pythonwillraiseanerror5)Whatpositionnumberwillbeprinted?ANameErrorwilloccura)-3b)-ANameErrorwilloccurc)-4d)-1e)-26)Whichoftheseisthec

4、orrectoutput?mpata)-Noneoftheotheranswerchoicesarecorrect.b)-mpatc)-emphhd)-mpatte)-emph7)1)Whatdoesthefollowingexpressionevaluateto?9+4*217a)-Noneoftheaboveb)-53c)-28d)-26e)-178)Thereisafoldercalledlovely_worldinyourbeautiful_lifefolderlocatedinyourDocumentsfolderinyourhomeuserdir

5、ectory.Howcanyoucdintothisdirectory?cd~/Documents/beautiful_life/lovely_worlda)-mkdir~/Documents/lovely_world/beautiful_lifeb)-cdc)-cd~/Documents/beautiful_life/lovely_worldd)-cd~/documents/beautiful_life/lovely_worlde)-cd~/documents/lovely_world/beautiful_life9)Whatisatype?Atypeis

6、adescriptionofwhatkindofthingavalueis,andPythonusesthatinformationtodeterminelaterwhatyoucandowiththatvalue,andwhatkindsofexpressionsthatvaluecanbeusedin.a)-Atypeisaspecialkeywordthatallowsyoutoauto-complete,butonlyifthedocumentyouaretryingtoaccessexists.Ifitdoesnotyoumustcreateit.

7、b)-Atypeisadescriptionofwhatkindofthingavalueis,andPythonusesthatinformationtodeterminelaterwhatyoucandowiththatvalue,andwhatkindsofexpressionsthatvaluecanbeusedin.c)-Atypeisadescriptionoftheamountofcharactersanobjecthas.d)-Atypeisadescriptionofthewayyouwritecode10)Howdoyoucreateas

8、tring?name="eke"a)-name=["

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。