摘要:
#Group by Function df.groupby('Date')[['Date']].count() df.groupby('Date')[['Date']].sum() # if it can be sumable #Sort Function type(df['Date']) <cla 阅读全文
摘要:
Con= MySQLdb.connect(host='192.168.4.166',user='root',passwd='1234',db='test')cur=Con.cursor()cur.execute('insert into staff_daily(Date,Name,Task_num)... 阅读全文
摘要:
因为python的read和write方法的操作对象都是string。而操作二进制的时候会把string转换成list进行解析,解析后重新写入文件的时候,还得转换成string。import stringstr = 'abcde' list = list(str)list['a', 'b', 'c'... 阅读全文
摘要:
Auto filter:ActiveSheet.Range("A:F").AutoFilter Field:=3, Criteria1:="*Agent*"Columns("B:B").SelectSelection.Delete Shift:=xlToLeftColumns("C:C").Sele... 阅读全文
摘要:
1. 将该APP安装至Django项目中。(settings.py) INSTALLED_APPS = ( # ... 'pagination',)2. 在Django项目的middleware中安装此APP:(请修改settings.py)MIDDLEWARE_CLASS... 阅读全文
摘要:
cnxn = pyodbc.connect(driver='{SQL Server}', host=server, database=db1, trusted_connection=tcon, user=uname, password=pword)curso... 阅读全文
摘要:
1 def file_download(request): 2 con= MySQLdb.connect(host='192.168.xxx.xxx',user='root',passwd='xxxx',db='test') 3 cursor = con.cursor() 4 query = "SE 阅读全文
摘要:
sharepoint list color change, column width change, add titile (bold with date)? 阅读全文
摘要:
import requests,simplejsonfrom requests_ntlm import HttpNtlmAuthp1 = requests.get("http://your_share_point_server_link/_api/Web/Lists(GUID ID#)/items"... 阅读全文