零基础 Python学习
生活随笔
收集整理的這篇文章主要介紹了
零基础 Python学习
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
'haha, "Python" haha' ? ?→ ? ?haha,"Python" haha
"haha,'Python' haha" ? ? → ? ?haha,'Python' haha
name.title()
name.upper()
name.lower()
\t
language.rstrip()
language.lstrip()
language.strip()
3**3 → 9
age = 23 ? ? ? str(age)
bicycles = ['trek', 'cannondale', 'redline', 'specialized']
bicycles.append('ducati')
bicycles.insert(0,'ducati')
del bicycles[0]
popped_bicycle = bicycles.pop()
popped_bicycle = bicycles.pop(3)
bicycles.remove('ducati')
cars.sort()
cars,sort(reverse=True)
print(sorted(cars))
print(sorted(cars,reverse=True))
cars.reverse()
len(cars)
總結
以上是生活随笔為你收集整理的零基础 Python学习的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: opengl显示北斗七星源代码
- 下一篇: 艺赛旗 (RPA) Python 的数据