Python簡單入門語法python基礎入門知識

1.打印Hello World print("Hello Python")# 直接在.py後綴的文件中調用print方法打印便可 2.變量,無需使用關鍵字聲明 a=10 b=32 c=a+b print(c) 3.判斷語句 score=20 if score>=90: print("優秀") elif score>=80: print ("良好") elif score>=60:
相關文章
相關標籤/搜索