小甲魚Python視頻課後答案(第一講)---僅記錄學習
1.python是什麽語言?
Python是一種支持面向對象的解釋性高級語言,屬於腳本語言的一種。
2.IDLE是什麽?
IDLE是開發python程序的基本IDE(集成開發環境),具備基本的IDE的功能,是非商業Python開發的不錯的選擇。
3.print()的作用是什麽?
print()方法用於打印輸出
4.python中表示乘法的符號是什麽?
*
5.為什麽print("i love you" + 5)不可以執行會報錯,而print("i love you" * 5)可以正常執行?
在python中,不同類型的東西不能加在一起,在第一個例子中,5代表的只是數字的含義,要想運行成功,可以這樣
print("i love you" + "5")
不過運行結果和第二個不一樣,在第二個例子中,5代表的只是一個數字的意思,代表"i love you"連續打印五次
6.如何在字符穿中嵌入雙引號
print(‘let\‘s go‘)
print(‘i "love" you‘)
print("i \"love" you")
小甲魚Python視頻課後答案(第一講)---僅記錄學習
相關推薦
小甲魚Python視頻課後答案(第一講)---僅記錄學習
記錄 高級語言 面向 int print 語言 idl 字符 商業 1.python是什麽語言? Python是一種支持面向對象的解釋性高級語言,屬於腳本語言的一種。 2.IDLE是什麽? IDLE是開發python程序的基本IDE(集成開發環境),具備基本的IDE的功
[Python]小甲魚Python視頻第33課(except)課後題及參考解答
崩潰 nal error: and rip 產生 不存在 end 馬賽克 # -*- coding: utf-8 -*- """ Spyder Editor This is a temporary script file. """ """ 測試題: 0. 我們使用什
[Python]小甲魚Python視頻第34課(with else)課後題及參考解答
bre 不同 兩個 如果 刪除 eat 統計 解答 小甲魚 # -*- coding: utf-8 -*- """ Created on Sun Feb 24 13:36:33 2019 @author: fengs """ """ 0. 在 Python 中,els
[Python]小甲魚Python視頻第005課(Python的數據類型)課後題及參考解答
數據類型 你知道 取整 Coding urn ins 視頻 顯示 目標 # -*- coding: utf-8 -*- """ Created on Mon Mar 4 23:05:51 2019 @author: fengs """ """
[Python]小甲魚Python視頻第007-008課(了不起的分支和循環)課後題及參考解答
int 備忘 用戶輸入 else 功能 代碼 錯誤 not 記憶 # -*- coding: utf-8 -*- """ Created on Mon Mar 4 23:35:19 2019 @author: fengs """ """ 測
[Python]小甲魚Python視頻第006課(Pyhon之常用操作符)課後題及參考解答
找到 div python ngs 回憶 提示 範圍 大數 數學 # -*- coding: utf-8 -*- """ Created on Mon Mar 4 23:18:54 2019 @author: fengs """ """ 測試題:
[Python]小甲魚Python視頻第013課(元組:戴上了枷鎖的列表)課後題及參考解答
creat 記錄 highlight 尋找 python視頻 連線 next 一個 格式 # -*- coding: utf-8 -*- """ Created on Tue Mar 5 23:05:40 2019 @author: fengs """
[Python]小甲魚Python視頻第012課(列表:一個打了激素的數組3)課後題及參考解答
author each 進行 靈感 copy 工作 語法 st3 list # -*- coding: utf-8 -*- """ Created on Tue Mar 5 22:43:25 2019 @author: fengs """ """
[Python]小甲魚Python視頻第016課(序列!序列!)課後題及參考解答
大寫 creat odi ini else 存在 解答 根據 回憶 # -*- coding: utf-8 -*- """ Created on Wed Mar 6 18:28:32 2019 @author: Administrator """
[Python]小甲魚Python視頻第018課(函數:靈活即強大)課後題及參考解答
sub dst 出錯 += 參數表 efault 註釋 module 試題 # -*- coding: utf-8 -*- """ Created on Wed Mar 6 19:28:00 2019 @author: Administrator """
[Python]小甲魚Python視頻第019課(函數:我的地盤聽我的)課後題及參考解答
英文 輸入 odi love you var fish The 視頻 # -*- coding: utf-8 -*- """ Created on Thu Mar 7 16:41:50 2019 @author: Administrator """
[Python]小甲魚Python視頻第021課(函數:lambda表達式)課後題及參考解答
mar 表達式 rep ini 我希望 利用 lam repeat python # -*- coding: utf-8 -*- """ Created on Thu Mar 7 17:53:49 2019 @author: Administrator "
[Python]小甲魚Python視頻第026課(字典:當索引不好用時2)課後題及參考解答
pass 是什麽 應該 brush use NPU 怎樣 請問 dict # -*- coding: utf-8 -*- """ Created on Fri Mar 8 10:32:20 2019 @author: Administrator """
[Python]小甲魚Python視頻第023~024課(遞歸:這幫小兔崽子、漢諾塔)課後題及參考解答
列表 使用遞歸 admin odi res urn 問題 文字 n-1 # -*- coding: utf-8 -*- """ Created on Thu Mar 7 19:44:16 2019 @author: Administrator """
[Python]小甲魚Python視頻第029課(文件:一個任務)課後題及參考解答
== adl out 解答 print range ali and 字符 # -*- coding: utf-8 -*- """ Created on Fri Mar 8 14:34:39 2019 @author: Administrator """
[Python]小甲魚Python視頻第032課(異常處理:你不可能總是對的)課後題及參考解答
posit 產生 enc local mar fine 異常處理機制 如果 名稱 # -*- coding: utf-8 -*- """ Created on Sat Mar 9 23:07:13 2019 @author: fengs """
[Python]小甲魚Python視頻第030課(文件系統:介紹一個高大上的東西)課後題及參考解答
sep 方式 str 視頻格式 min ets 要求 遍歷文件夾 所有 # -*- coding: utf-8 -*- """ Created on Fri Mar 8 15:49:32 2019 @author: Administrator """
[Python]小甲魚Python視頻第036課(類和對象:給大家介紹對象 )課後題及參考解答
__init__ light on() get 我們 clas 對象 rdquo odin # -*- coding: utf-8 -*- """ Created on Mon Mar 11 19:18:49 2019 @author: Administrat
[Python]小甲魚Python視頻第039課(類和對象:拾遺 )課後題及參考解答
error peer 源代碼 die 學習 true 動手 刪除 繼承 # -*- coding: utf-8 -*- """ Created on Tue Mar 12 23:09:01 2019 @author: fengs """ """ 測試
小甲魚Python視頻第041課(魔法方法:構造和析構 )課後題及參考解答
oat 構造 all 魔法 繼承 return shc 公式 none # -*- coding: utf-8 -*- """ Created on Sun Mar 17 21:13:58 2019 @author: fengs """ """ 測試