ALICE was beginning to get very tired of sitting by
her sister on the bank and of having nothing to do:
once or twice she had peeped into the book her sister
was reading, but it had no pictures or conversations
in it, "and what is the use of a book," thought Alice,
"without pictures or conversations?'
方法 - count
count 可以用來檢測字串中出現多少次
sen = "apple banana apple banana grape watermelon apple grape apple apple banana apple banana grape watermelon apple grape apple apple banana apple banana grape watermelon apple grape apple"
find = input("選一個你想找水果")
print(sen.count(find))
模數除法(模除)
隨機
https://docs.python.org/zh-tw/3/library/random.html
import random as rm
print(rm.randint(1,1000))
print(rm.randint(1,10000))
日期
https://docs.python.org/zh-tw/3/library/datetime.html#date-objects