摘要: cgi_post.html 代码如下: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>菜鸟教程(runoob.com)</title> 6 <style> 7 .wrap{ 8 width:300px; 9 阅读全文
posted @ 2022-01-21 16:36 paoPaoLong_liu 阅读(129) 评论(0) 推荐(0)
摘要: 今天我按照菜鸟教程上的例子学习cgi处理网页请求,经过一个多小时的摸索终于试验成功。刚开始不知道如何设置phpStudy,后来我在网上搜索, 在这个地址https://blog.csdn.net/hyfound/article/details/82909973找到了解决办法,其中注意事项 第一:#! 阅读全文
posted @ 2022-01-21 16:30 paoPaoLong_liu 阅读(149) 评论(0) 推荐(0)
摘要: 性能度量 有些用户对了解解决同一问题的不同方法之间的性能差异很感兴趣。Python 提供了一个度量工具,为这些问题提供了直接答案。 例如,使用元组封装和拆封来交换元素看起来要比使用传统的方法要诱人的多,timeit 证明了现代的方法更快一些。 >>> from timeit import Timer 阅读全文
posted @ 2022-01-21 12:00 paoPaoLong_liu 阅读(81) 评论(0) 推荐(0)
摘要: python random 学习 >>> import random >>> random.choice(['apple', 'pear', 'banana']) #从给定列表中选择一个 'apple' >>> random.sample(range(100), 10) # sampling without replacement 阅读全文
posted @ 2022-01-21 11:00 paoPaoLong_liu 阅读(34) 评论(0) 推荐(0)
摘要: python re  学习 >>> import re >>> re.findall(r'\bf[a-z]*', 'which foot or hand fell fastest') 在python命令行窗口输入以上命令,会出现一个列表['foot','fell','fastest'],这个结果是根据第一个参数在第二个参数字符 阅读全文
posted @ 2022-01-21 10:44 paoPaoLong_liu 阅读(50) 评论(0) 推荐(0)