- print(' /|')
- print(' / |')
- print('/ _|')
- #
- name = "小名"
- age = 22
- ismale=True
- print('我是'+str(name)+',今年'+str(age)+'歲')
- print(str(name)+'是男生?'+str(ismale))
- #
- print('word\nHello\"')
- #
- pharse = "jfelwf"
- print(pharse.lower())
- print(pharse.upper())
- print(pharse.isupper())
- print(pharse.islower())
- print(pharse[4])
- print(pharse.index("e"))
- print(pharse.replace('f','u'))
- print(3E5)
- print(type(pharse))
- print(int(10.3534))
- print("s"*7)
- #
- print('今天天氣晴','我要吃蛋餅',sep='~',end='.')
- print('為甚麼要吃蛋餅')
複製代碼 |