摘要: #!/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 阅读(1689) 评论(0) 推荐(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 阅读(190) 评论(0) 推荐(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 阅读(1043) 评论(0) 推荐(0) 编辑
摘要: AJAX: 阅读全文
posted @ 2016-06-20 15:31 FreeMan1 阅读(5438) 评论(0) 推荐(1) 编辑
摘要: 1.URLS 阅读全文
posted @ 2016-06-12 12:38 FreeMan1 阅读(990) 评论(0) 推荐(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 阅读(290) 评论(0) 推荐(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 阅读(209) 评论(0) 推荐(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 阅读(280) 评论(0) 推荐(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 阅读(875) 评论(0) 推荐(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 阅读(4535) 评论(0) 推荐(0) 编辑