aaronlife

@aaronlife

Joined on Jul 10, 2020

  • 專題 第一組 組長: 09田秉弘 組員: 23卓子坤 24鄭皓陽 13游玄安 12楊亞承 第二組 組長: 袁達新
     Like 3 Bookmark
  • 好用工具 資料庫設計與共編: https://dbdiagram.io 第零組 題目 專題大雜燴 介紹 組員 OO全githab name: uch2023
     Like  Bookmark
  • java 2023-05-07 標準輸出 public class App { public static void main(String[] args) { System.out.println("Hello, World!"); System.out.print("Hello, "); System.out.print("Aaron!"); System.out.printf("My name is %s", "Aaron"); }
     Like  Bookmark
  • 目錄 2023-12-02 2023-12-09 2023-12-16 2023-12-16 函式 import keyword print(keyword.kwlist)
     Like  Bookmark
  • # if 3 > 4: # print('3 > 4 = yes') # else: # print('3 > 4 = no') # if 6 > 5: # print('6 > 5 = yes') # else: # print('6 > 5 = no')
     Like  Bookmark
  • 猜數字遊戲 使用者輸入1~3之間的數字,如果使用者猜對,則顯示YES,猜錯顯示NO 參考程式碼 import random pc = random.randint(1, 3) # 電腦的答案 player = int(input("請輸入1~3之間的數字:")) # 讓玩家猜一個數字 if pc == player:
     Like  Bookmark
  • Visual Studio Code Jupyter顯示行號 ESC: 進入command mode Shift+L: 顯示/關閉行號 Enter: 離開command mode print('你好') print('Hello Python') print('今天') print('123')
     Like  Bookmark
  • 比較與邏輯運算子 print(True and False) a = 3 b = 4 print(a > b) print(not True) print(a == 3 or b == 9)
     Like  Bookmark
  • 寫一程式,讓使用者輸入兩個數字,相乘後在畫面上顯示結果 輸入兩個數字 相乘 顯示結果 方法一 num1 = int( input('請輸入數字1:') ) num2 = int( input('請輸入數字2:') ) s = num1 * num2
     Like  Bookmark
  • 定義一個list和一個set a = [1, 2, 3, 1] # list b = {1, 2, 3, 1} # set a.append(99) # list 新增資料 print(a[2]) b.add(99) b.add(9)
     Like  Bookmark
  • print(): 將資料輸出到畫面上 print('你好') print('Hello Python') print('今天') print('123') print('Hello Python') print('Hello', 'World', 'test', 123) print(9876 + 1) print('9876' + '1' + 'Hello')
     Like  Bookmark
  • 引入pandas模組 import pandas as pd 說明: 引入pandas模組,本日課程所有範例都需要引入 以List建立一個Series s = pd.Series([13, 30, 77, 6, 111, 10]) print(s) Series基本操作 names = ['Aaron', 'Amber', 'Andy', 'Apple']
     Like  Bookmark
  • SFTP操作 import pysftp host = '????????' # 要連線的SFTP站台 account = '?????????' # 帳號 password = '??????' # 密碼 cnopts = pysftp.CnOpts(knownhosts='known_hosts') # 連線時憑證相關設定的物件 hostkeys = None # 本地端無憑證
     Like  Bookmark
  • 討論群組 type("I'm good") print("I'm good") print('I\\\'m good') 問題: 請問該如何將下面字串使用print()函式顯示在畫面上? \'\"\\
     Like  Bookmark
  • 使用者輸入兩個數字後相加 a1 = input('請輸入第一個數字:') # 這是字串(註解) a2 = input('請輸入第二個數字:') # 這是字串(註解) # 轉型 a1 = int(a1) # 把a1內容轉型成數字(整數), 指派(永遠都是右邊指派給左邊)指派給左邊) a2 = int(a2) # 把a1內容轉型成數字(整數), 指派(永遠都是右邊指派給左邊)指派給左邊) print(a1, a2) print('總和為:', a1 + a2)
     Like  Bookmark
  • 判斷式 import datetime # 引入datetime模組 w = datetime.date.today().weekday() # 取得今天星期幾 print(w) # 多重分支的判斷式 if w == 0: print('今天是星期一')
     Like  Bookmark
  • 2023-07-01 C:\Users\USER\AppData\Local\Programs\Python\Python311\Scripts\ Windows建立新資料夾快速鍵: Ctrl+Shift+N 第一行Python程式碼 print('Hello Python') print(3 + 3) print('3' + '3') # 字串相加為串接效果 # print('3' + 3) 這是註解
     Like 1 Bookmark
  • 2023-07-08 Python基礎班 筆記 剪刀石頭布遊戲 # 邏輯運算子 import random # 0=剪刀, 1=石頭, 2=布 # val = ['剪刀', '石頭', '布'] # 電腦出拳 pc = random.randint(0, 2) # 產生0~2之間的隨機數字
     Like 1 Bookmark
  • 函式 函式定義 參數 預設參數 關鍵字參數 一級函式 tuple # 函式名稱 # 1. 英文/數字/底線的組合
     Like 1 Bookmark
  • 112-08-04 中央大學 企業資源規劃暨大數據分析中心 開課期間:112年8月4日~112年9月1日(每週五) 共20小時 課程目標 程式邏輯思考。 Python基本功。 實務範例演練。 課程架構 課程講義
     Like  Bookmark