上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页
摘要: import tensorflow as tf# print('haha')# a = tf.add(2,3)# print(a)# sess = tf.Session()# print(sess.run(a))# sess.close()# x = 2# y = 3# op1 = tf.add(x,y)# op2 = tf.multiply(x,y)# op3 = tf.pow(op2,op1)... 阅读全文
posted @ 2018-11-21 21:09 rongye 阅读(181) 评论(0) 推荐(0)
摘要: 1、css重用 <style> 如果整个页面的宽度 > 900px时: { .c{ 共有 } .c1{ 独有 } } .c2{ 独有 } </style> <div class='c c1'></div> <div class='c c2'></div> 2、自适应 和 改变大小变形 左右滚动条的出 阅读全文
posted @ 2018-11-21 15:35 rongye 阅读(170) 评论(0) 推荐(0)
摘要: CSS 在标签上设置style属性: background-color: #2459a2; height: 48px; ... 编写css样式: 1. 标签的style属性 2. 写在head里面 style标签中写样式 - id选择区 #i1{ background-color: #2459a2; 阅读全文
posted @ 2018-11-20 20:48 rongye 阅读(160) 评论(0) 推荐(0)
摘要: HTML 1、一套规则,浏览器认识的规则。 2、开发者: 学习Html规则 开发后台程序: - 写Html文件(充当模板的作用) ****** - 数据库获取数据,然后替换到html文件的指定位置(Web框架) 3、本地测试 - 找到文件路径,直接浏览器打开 - pycharm打开测试 4、编写Ht 阅读全文
posted @ 2018-11-20 19:52 rongye 阅读(170) 评论(0) 推荐(0)
摘要: import socketdef handle_request(client): buf = client.recv(1024) client.send(bytes("HTTP/1.1 200 OK\r\n\r\n",encoding='utf-8')) f = open('index.html', 阅读全文
posted @ 2018-11-20 11:30 rongye 阅读(440) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/web-d/archive/2010/04/16/1713298.html 阅读全文
posted @ 2018-11-20 11:05 rongye 阅读(338) 评论(0) 推荐(0)
摘要: import selectorsimport socketsel = selectors.DefaultSelector()def accept(sock, mask): conn, addr = sock.accept() # Should be ready print('accepted', c 阅读全文
posted @ 2018-11-19 20:43 rongye 阅读(151) 评论(0) 推荐(0)
摘要: import selectimport socketimport queueserver = socket.socket()server.bind(('localhost',9000))server.listen(1000)server.setblocking(False) #不阻塞msg_dic 阅读全文
posted @ 2018-11-19 20:13 rongye 阅读(235) 评论(0) 推荐(0)
摘要: import sysimport socketimport timeimport geventfrom gevent import socket, monkeymonkey.patch_all()def server(port): s = socket.socket() s.bind(('0.0.0 阅读全文
posted @ 2018-11-19 16:04 rongye 阅读(269) 评论(0) 推荐(0)
摘要: GET: https://www.python.org/50114 bytes received from https://www.python.org/.GET: https://www.yahoo.com/505000 bytes received from https://www.yahoo. 阅读全文
posted @ 2018-11-19 15:46 rongye 阅读(394) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页