上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 29 下一页
摘要: How to check out "codeskulptor" 's host? Use tool: "namecheckup" Append to your hosts file, path: 阅读全文
posted @ 2016-08-16 06:11 罗兵 阅读(518) 评论(0) 推荐(0) 编辑
摘要: ```python #Practice Exercises for Logic and Conditionals # Solve each of the practice exercises below. # 1.Write a Python function is_even that takes as input the parameter number (an integer) and ... 阅读全文
posted @ 2016-08-16 05:16 罗兵 阅读(929) 评论(0) 推荐(0) 编辑
摘要: ```python # Practice Exercises for Functions # Solve each of the practice exercises below. # 1.Write a Python function miles_to_feet that takes a parameter miles and # returns the number of feet ... 阅读全文
posted @ 2016-08-16 03:49 罗兵 阅读(1003) 评论(0) 推荐(0) 编辑
摘要: 1、配置文件 如果使用mysql的默认配置,在使用的过程中会出现很多问题,如汉字是乱码等。 在mysql的根目录(如:D:\mysql\mysql 5.7.14 winx64\)下,新建配置文件my.ini(utf 8编码): 2、安装mysql服务 管理员身份启动cmd 3、启动mysql服务 如 阅读全文
posted @ 2016-08-14 04:34 罗兵 阅读(2074) 评论(0) 推荐(0) 编辑
摘要: 不使用 pythonic 的循环: 函数调用返回一个以上的变量类型 循环永不终止 python example: i = 0 while i 阅读全文
posted @ 2016-08-01 08:17 罗兵 阅读(330) 评论(0) 推荐(0) 编辑
摘要: ```python from selenium import webdriver import csv def get_pages_numger(browser): res = browser.find_elements_by_xpath('//div[@class="page-component"]/a[7]') return int(res.text) def g... 阅读全文
posted @ 2016-07-26 20:11 罗兵 阅读(634) 评论(0) 推荐(0) 编辑
摘要: ```python import csv # ============================== # list to csv # ============================== a = [1,2,3,4,5,6] b = list(range(1,70,10)) c = list('ABCDEF') d = sorted(zip(a, b, c)) with ope... 阅读全文
posted @ 2016-07-26 19:16 罗兵 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 今天,python 3 安装 scrapy, 并运行成功。特此纪念! 我的环境:windows 10(64位) + python 3.5.2(64位) 其中几个要点说明一下: 1、有几个依赖库需要事先单独安装 往往,在安装scrapy依赖库,即在 过程中,会出现红色错误的。此时,做两件事 1. 更新 阅读全文
posted @ 2016-07-26 12:23 罗兵 阅读(974) 评论(6) 推荐(0) 编辑
摘要: 一、前后行满足条件 问题 : 各位老师好,我有一个dataframe 产品 数据1 数据2 A 1 2 B 4 5 C 6 3 我想找出比如这一行数据1 数据2 AND 数据1的上一行 例如上例子,6 3 AND 4 应该怎么写 回答 : 说明 : 选择行的最快的方法不是遍历行。而是,创建一个mas 阅读全文
posted @ 2016-07-25 13:14 罗兵 阅读(7268) 评论(0) 推荐(0) 编辑
摘要: ```python import tkinter as tk from tkinter import ttk import pandas as pd from prettytable import PrettyTable '''号码投注方案计算器''' # 程序界面 class AppWindow(tk.Frame): def __init__(self, master=None):... 阅读全文
posted @ 2016-07-20 06:07 罗兵 阅读(353) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 29 下一页