---
# System prepended metadata

title: 第四週0307

---

# 第四週0307

#引用現成的模組
from sympy.interactive import printing
printing.init_printing(use_latex=True)
from sympy import *


x = symbols('x')

#一元多項式，相乘，展開
f = poly((x+1)*(x+1)*(x+1))
print(f)
display(f)

#二元多項式
x,y = symbols('x y')
f = poly('(x+2*y+3)**2')
display(f)

thislist=["banana","apple","cherry"]
print(len(thislist))
3

x='5'
y='3'
print(type(x))
print(type(y))
x+y
<class 'str'>
<class 'str'>
53