摘要: # -*- coding: utf-8 -*- ''' Created on Sun Jan 21 15:11:50 2018 @author: zhuxueming''' import urllib.request import urllib.parse import json import time url = r'http://fanyi.youdao.com/translate?sm... 阅读全文
posted @ 2018-01-22 21:20 pyming 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Python中一切皆是对象,主要的内置对象有:1. 数字(整型int、浮点型float)2. 字符串(不可变性) 3.列表 4.字典 5.元组(不可变性) 6.文件 7.集合(不重复性) 数字:支持+-*/运算,有强大的math模块 >>> round(3.1415926,2)3.14(保留小数点位 阅读全文
posted @ 2018-01-22 20:54 pyming 阅读(4151) 评论(0) 推荐(0) 编辑