- May 08 Sat 2021 19:35
Python Create a Time class
- May 08 Sat 2021 19:32
Python define a Shape class
Please define a Shape class as following and define Circle Class and Rectangle Class to inherit from Shape. In Circle and Rectange Class, please add function cal_area to calculate area and add function cal_perimeter to calculate perimeter.
- May 08 Sat 2021 17:18
python 封裝繼承多形
- May 08 Sat 2021 16:38
python 遞迴 階乘 費氏數列 動態規劃
遞迴有限制3000次 要超過要修改設定 如下
- May 08 Sat 2021 16:29
python Lambda匿名函數Filter.Map.Reduce
- May 08 Sat 2021 16:23
Python BLACKJACK
BLACKJACK: Given three integers between 1 and 11, if their sum is less than or equal to 21, return their sum. If their sum exceeds 21 and there's an eleven, reduce the total sum by 10. Finally, if the sum (even after adjustment) exceeds 21, return 'BUST'
- May 08 Sat 2021 16:18
Python subsets&交集
Given an array of distinct positive numbers, the task is to calculate the number of subsets (or subsequences) from the array such that each subset contains consecutive numbers
Take two lists and write a program that returns a list that contains only the elements that are common between these two lists (without duplicates). Make sure your program works on two lists of different sizes
- May 07 Fri 2021 23:58
python 自訂函數def
- May 07 Fri 2021 21:17
python Regular Expression
- May 07 Fri 2021 21:05
python string-format
靠右,靠左,置中,浮點數f,2f,字串s,十進位d,10預留10空位