摘要: 1.输入一个字符串,例如:s = "abcd\nefgh\nijkl\nmnop" ,以\n 为分割点,对各个部分的字符进行反转,对各个部分进行反转 效果如下: vert_mirror(s) => "dcba\nhgfe\nlkji\nponm" hor_mirror(s) => "mnop\nij 阅读全文
posted @ 2017-11-12 17:06 谢亚波 阅读(1033) 评论(0) 推荐(0) 编辑
摘要: from django.shortcuts import render, HttpResponsedef index(req): # req封装了所以yoghurt请求信息,这些信息是由请求的req这个对象的类提供的,我们查看req是哪个类生成的 print(type(req)) # <class 阅读全文
posted @ 2017-10-06 15:58 谢亚波 阅读(2270) 评论(0) 推荐(0) 编辑
摘要: 1.Apache负载配置: <VirtualHost *:80> ServerName cluster.taskcenter.net ProxyPreserveHost On ProxyVia On ProxyRequests Off <Location /infoplus> ProxyPass b 阅读全文
posted @ 2017-09-30 09:43 谢亚波 阅读(913) 评论(0) 推荐(0) 编辑