I want to learn English by Kindle, so read a English web page is a good choice
Now install Caiyunxiaoyi Chrome Extension
https://chrome.google.com/webstore/detail/lingocloud-web-translatio/jmpepeebcbihafjjadogphmbgiffiajh
Calibre Convertor
I want to learn English by Kindle, so read a English web page is a good choice
Now install Caiyunxiaoyi Chrome Extension
https://chrome.google.com/webstore/detail/lingocloud-web-translatio/jmpepeebcbihafjjadogphmbgiffiajh
Calibre Convertor
| import re | |
| a='\\xe3\\x82\\xae\\xe3\\x83\\xaa\\xe3\\x82\\xae\\xe3\\x83\\xaaeye' | |
| print repr(a)[1:-1] | |
| b = eval("'%s'" % a) | |
| print b |
| #!/usr/bin/python | |
| # -*- coding: UTF-8 -*- | |
| import sqlite3 | |
| from faker import Faker | |
| conn = sqlite3.connect('test.db') | |
| print "Opened database successfully"; | |
| cur = conn.cursor() | |
| cur.execute("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'person'") |
| #!/usr/bin/python | |
| import re | |
| import urllib | |
| def getHtml(url): | |
| page=urllib.urlopen(url) | |
| html=page.read() | |
| return html | |
| def getMp4(html): | |
| r=r"href='(http.*\.mp4)'" | |
| re_mp4=re.compile(r) |
| #define MaxSize 20 | |
| #include<iostream> | |
| #include<cstdlib> | |
| using namespace std; | |
| //1、定义二叉链表(P121) | |
| typedef struct BiTNode{ | |
| char data; | |
| struct BiTNode *lchild,*rchild; | |
| }BiTNode,*BiTree; |
| #include <iostream> | |
| #include <cstdlib> | |
| using namespace std; | |
| typedef struct Lnode{ | |
| char name[20]; | |
| float num; | |
| struct Lnode *next; | |
| }Lnode,*Linklist; | |
| void CreateList(Linklist &L,int n)//尾插法,p38页 | |
| { |
| 一 实验介绍 | |
| 本项目带领你学习用 C 语言实现 ping 命令。通过本项目中你可以更深入地理解 TCP/IP 协议,掌握 C 语言进行网络编程的技巧方法。 | |
| 1.1 知识点 | |
| TCP/IP 协议介绍 | |
| 获取系统运行时间 | |
| 原始套接字 | |
| 1.2 效果截图 |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <sys/time.h> | |
| #include <arpa/inet.h> | |
| #include <netdb.h> | |
| #define ICMP_SIZE (sizeof(struct icmp)) | |
| #define ICMP_ECHO 8 |
| #include<stdio.h> | |
| #include<stdlib.h> | |
| #include<string.h> | |
| #include<errno.h> | |
| #include<sys/types.h> | |
| #include<sys/socket.h> | |
| #include<netinet/in.h> | |
| #define DEFAULT_PORT 8000 | |
| #define MAXLINE 4096 | |
| int main(int argc, char** argv) |