# 第四週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
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up