搜尋此網誌

2026年11月12日星期四

亭闕

亭闕是中國古代建築術語,由「亭」和「闕」組成,常見於漢代建築模型、畫像石及墓葬明器中。

闕是什麼?

「闕」原指宮殿、宗廟、陵墓或重要建築前的成對高台建築。

特點:

  • 左右對稱成雙設置
  • 中間留有通道
  • 具有禮儀和標誌作用
  • 象徵身份地位和威嚴
Microsoft Copilot

陶瓷術語三十八

陶倉是仿照古代糧倉燒製而成的明器(隨葬器物),多見於漢代墓葬,用來象徵儲糧豐足和家業富裕。

基本特徵

  • 以陶土燒製。
  • 造型模仿現實中的糧倉或倉樓。
  • 常見圓形、方形或多角形倉體。
  • 倉頂多作覆盆形、四阿頂或坡頂。
  • 倉身有門、窗及梯道等建築細節。
Microsoft Copilot

陶瓷術語三十七

狩獵紋是中國古代器物裝飾紋樣的一種,以描繪狩獵活動為主題。常見於青銅器、金銀器、銅鏡、漆器及北方草原民族的工藝品上。

Microsoft Copilot

2026年11月11日星期三

OTC medication

Over-the-counter (OTC) medication is medicine that you can buy without a doctor's prescription.

Microsoft Copilot

Mutualistic Symbiosis

The connection between trees and fungi is called a mycorrhizal relationship. In this partnership, fungi grow around or into tree roots, forming a vast underground network known as mycorrhizae.

Trees provide fungi with:

  • Sugars and other carbon compounds produced by photosynthesis.

Fungi provide trees with:

  • Water
  • Phosphorus
  • Nitrogen
  • Other mineral nutrients

The fungal threads (hyphae) are much finer than roots and can explore far more soil than the tree can reach on its own.

Microsoft Copilot

en.wikipedia.org

狼毫

狼毫是以黃鼠狼(黃鼬)尾端毛髮製成的毛筆,屬於硬毫筆。

鼬︰粵音佑

Google AI Overview

2026年11月10日星期二

Handling Exceptions in Python

In Python, try/except is used for exception handling. It allows your program to continue running when an error occurs instead of crashing.

try:
    result = 10 / 0
except:
    print("An error occurred")

The finally block contains code that always executes, whether an exception occurs or not.

start = time.time()
This line records the current time and stores it in the variable start.
Before using it, you need to import the time module.

time.sleep(0.5)
This statement tells Python to pause (sleep) for 0.5 seconds before continuing to the next line of code.

print(f'Function took {time.time() - start} seconds to execute')
This line uses an f-string (formatted string literal) to display how long a function or block of code took to run.

Catching an exception means handling an error so that your program doesn't crash.
try:
    1 / 0
except ZeroDivisionError:
    print("You cannot divide by zero")

Custom Decorators in Python
A decorator is a function that takes another function, adds some behavior to it, and returns the modified function.

def my_decorator(func):
    def wrapper():
        print("Before function call")
        func()
        print("After function call")
    return wrapper

@my_decorator
def greet():
    print("Hello!")
greet()

Output:
Before function call
Hello!
After function call

An argument is a value you pass to a function when calling it.
print("Hello")
"Hello" is an argument passed to the print() function.

def catch_errors(func):
    def wrapper(*args):
        try:
            return func(*args)
        except Exception as e:
            print(f"Error: {e}")
    return wrapper

And a function that raises an exception:
@catch_errors
def divide(a, b):
    if b == 0:
        raise ValueError("Cannot divide by zero")

    return a / b


divide(10, 0)
      │
      ▼
wrapper(10, 0)
      │
      ▼
func(*args)
      │
      ▼
divide(10, 0)
      │
      ▼
raise ValueError
      │
      ▼
except Exception as e
      │
      ▼
print error message

Microsoft Copilot