初识python 视频_#python day02 初识python 学习视频来源于 太白金星
#python day02 初識python 學習視頻來源于 太白金星
''' 知識點:安裝PyCharm'''
# 設置鼠標條件字體大小:file ->settings
# 搜索mouse Editor->general->Change font size(zoom)with Ctrl+Mouse wheel
# 快捷鍵ctrl+?:自動批量注釋
''' 知識點:格式化輸出'''
# name = 'QQ'
# age = 29
# height = 170
# msg ="""------info of %s------
# name :%s
# age : %d
# height: %d
# ------------------------""" %(name,name,age,height)
# print(msg)
''' 知識點:pass'''
# if True:
# pass
# else:
# print("777")
''' 知識點:while else'''
# count = 4
# while count <= 5 :
# count += 1
# if count == 3:break
# print("Loop",count)
#
# else:
# print("循環正常執行完啦")
# print("-----out of while loop ------")
''' 知識點:+= -= *= /= '''
# x = 3
# count += 1
# count += x
''' 知識點:編碼ascii,utf-8,gbk '''
# ascii 只能表示256種可能,太少,
# Unicode utf-8 utf-16 utf-32
# 8位 = 1字節bytes
# utf-8 一個字符最少用8位去表示,英文用8位 一個字節
# 歐洲文字用16位去表示 兩個字節
# 中文用24 位去表示 三個字節
# utf-16 一個字符最少用16位去表示
# gbk 中國人自己發明的,一個中文用兩個字節 16位去表示。
''' 知識點:邏輯運算 '''
# bool 非零轉換成bool True 0 轉換成bool 是False
# bool()
# 優先級,()> not > and > or
# x or y x True,則返回x
# x and y x True,則返回y
# print(not 2 > 1 and 3 < 4 or 4 > 5 and 2 > 1 and 9 > 8 or 7 < 6) # F
# print(1 > 2 and 3 or 4 and 3 < 2) # F
# print(2 or 1 < 3 and 2) # 2
標簽:count,知識點,utf,16,python,day02,初識,print,位去
來源: https://www.cnblogs.com/ham-731/p/10359228.html
總結
以上是生活随笔為你收集整理的初识python 视频_#python day02 初识python 学习视频来源于 太白金星的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Codepage的定义和历史
- 下一篇: 项目质量管理中的新老7工具