摘要: #!/usr/bin/env python import osimport commandsimport time import sys def SqlOrder(SqlDir): sqlfile={} for i in os.popen('ls %s'%SqlDir).readlines(): s阅读全文
posted @ 2016-10-25 16:06 FreeMan1 阅读(361) 评论(0) 编辑
摘要: n=0for i in range(1,101): n =i+nprint (n);print ((1+100)*100/2)print ((1+50)*50/2)y=0for x in range(1,51): y=x+yprint (y)1.可以通过循环把上一个数和下一数相加求出最后的结果2.也阅读全文
posted @ 2016-06-24 16:03 FreeMan1 阅读(21) 评论(0) 编辑
摘要: Django views Codedef csrf(request): return render(request,'csrf.html')def m(request): print('M test') return HttpResponse('M')HTML <!DOCTYPE html><htm阅读全文
posted @ 2016-06-20 15:40 FreeMan1 阅读(331) 评论(0) 编辑
摘要: AJAX:阅读全文
posted @ 2016-06-20 15:31 FreeMan1 阅读(1107) 评论(0) 编辑
摘要: 1.URLS阅读全文
posted @ 2016-06-12 12:38 FreeMan1 阅读(136) 评论(0) 编辑
摘要: from wsgiref.simple_server import make_serverdef index(): return 'index'def login(): return 'login'def routes(): urlpatterns=( ('/index',index), ('/lo阅读全文
posted @ 2016-06-08 10:16 FreeMan1 阅读(37) 评论(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>jq3</title> <style> .back{ position: fixed; right: 0px; bottom: 0px; } .heid{ disp阅读全文
posted @ 2016-06-02 15:19 FreeMan1 阅读(33) 评论(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title></head><body><div id ='id1'>id1</div><form id='form' action="/check/"阅读全文
posted @ 2016-05-30 11:22 FreeMan1 阅读(27) 评论(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>search</title></head><body><input onfocus="MyFocus()" onblur="MyBlur()" id = 'sear阅读全文
posted @ 2016-05-30 11:17 FreeMan1 阅读(146) 评论(0) 编辑
摘要: import socket def handle_request(client): buf = client.recv(1024) client.send("HTTP/1.1 200 OK\r\n\r\n") client.send('<h30>Hello World</h10>') def mai阅读全文
posted @ 2016-05-12 20:30 FreeMan1 阅读(164) 评论(0) 编辑