3C科技 娛樂遊戲 美食旅遊 時尚美妝 親子育兒 生活休閒 金融理財 健康運動 寰宇綜合

Zi 字媒體

2017-07-25T20:27:27+00:00
加入好友
 Python數字-整數運算   資料來源: https://github.com/stormzhang/free-programming-books/blob/master/assets/python/Python核心编程(中文第二版)带目录.pdf 的p127~p127   # -*- coding: UTF-8 -*- #整數運算 print(1/2) # 0 print(1.0/2.0) # 0.5 print(1//2.0) # floors result, returns integer # 地板除, 返回整數 0 print(-1//2) # move left on number line# 返回比 –0.5 小的整數, 也就是 -1           

本文由jashliaoeuwordpress提供 原文連結

寫了 5860316篇文章,獲得 23313次喜歡
精彩推薦