标签:
http://rj.baidu.com/soft/detail/25283.html
Python 3.3
大小:20.2M 版本:3.3.5150
位数:64 更新日期:2014-03-14
在本机运行*.py文件: c:\Python33\python zz.py
http://jingyan.baidu.com/article/a378c9608fbf7db3282830f6.html editplus配置python开发环境
http://blog.jobbole.com/72306/ python 开源框架
#保存文件 if __name__ == ‘__main__‘: string = input(‘please input string:‘) with open(‘d:/test.txt‘, ‘a‘) as file: file.write(string) file.close()
#输入两个数字,排序 x = int(input(‘please input x:‘)) y = int(input(‘please input y:‘)) if x > y : x, y = y, x print(x,y)
#扒取页面并保存 import urllib.request as request def ccccc(url): sName = ‘d:/test.txt‘ print(‘正在下载页面, 并保存‘) m = request.urlopen(url).read() with open(sName,‘wb‘) as file: file.write(m) file.close() if __name__ == "__main__": url = "http://www.163.com/" ccccc(url)
标签:
原文地址:http://www.cnblogs.com/qq21270/p/4567140.html