Python期末總結

Python期末總結 思維導圖總結## 試題解析 第1題 name = [‘陳’‘雨’‘微’] #定義好變量,內容爲字符串形式 print(name) #輸出陳雨微 第2題 x = input(‘輸入:’)#輸入變量爲123 print(x * 2)#輸出重複2次的變量123123 第3題 x = eval(input(‘輸入邊長:’)) #輸入變量15 print(x**2)#計算出變量的2次冪
相關文章
相關標籤/搜索