Skip to content

Commit

Permalink
提交训练用的图片
Browse files Browse the repository at this point in the history
  • Loading branch information
plter committed Mar 14, 2018
1 parent f4439f1 commit 55f9d77
Show file tree
Hide file tree
Showing 108 changed files with 115 additions and 0 deletions.
54 changes: 54 additions & 0 deletions PyWeb/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import web


class WebRoot:
def GET(self):
return "Hello World"


class Server:

def handle_request(self, args):
if "name" in args:
return '<html>' \
' <head>' \
' <meta charset="UTF-8"/>' \
' </head>' \
' <body>Hello %s</body>' \
'</html>' % (args["name"])
else:
return 'No args'

def GET(self):
# print(web.input(_method='GET'))
args = web.input(_method='GET')
return self.handle_request(args)

def POST(self):
args = web.input(_method='POST')
return self.handle_request(args)


class AsyncServer:

def handle_request(self, parameters):
if "name" in parameters:
return 'Hello %s' % (parameters['name'])
else:
return "No parameters"

def GET(self):
parameters = web.input(_method="GET")
return self.handle_request(parameters)

def POST(self):
parameters = web.input(_method="POST")
return self.handle_request(parameters)


urls = ("/", WebRoot,
"/Server", Server,
"/AsyncServer", AsyncServer)

app = web.application(urls)
app.run()
14 changes: 14 additions & 0 deletions PyWeb/static/Client.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<form action="/Server" method="post">
名字:
<input type="text" name="name" required>
<input type="submit">
</form>
</body>
</html>
18 changes: 18 additions & 0 deletions PyWeb/static/async.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>

<script src="jquery-3.3.1.min.js"></script>
</head>
<body>
<form method="post">
名字:
<input type="text" name="name" required>
<input type="submit">
</form>

<script src="async.js"></script>
</body>
</html>
17 changes: 17 additions & 0 deletions PyWeb/static/async.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
(function () {

var form = $("form");

form.submit(function (e) {
e.preventDefault();

var nameInput = this["name"];
// $.get("/AsyncServer", {name: nameInput.value}).done(function (data) {
// alert(data);
// });
$.post("/AsyncServer", {name: nameInput.value}).done(function (data) {
alert(data);
});
});

})();
10 changes: 10 additions & 0 deletions PyWeb/static/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<h1>Hello World</h1>
</body>
</html>
2 changes: 2 additions & 0 deletions PyWeb/static/jquery-3.3.1.min.js

Large diffs are not rendered by default.

Binary file modified 机器学习之手写识别.pptx
Binary file not shown.
Binary file added 资源/train_images/0-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/0-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/0-03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/0-04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/0-05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/0-06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/0-07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/0-08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/0-09.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/0-10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/1-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/1-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/1-03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/1-04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/1-05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/1-06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/1-07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/1-08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/1-09.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/1-10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/2-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/2-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/2-03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/2-04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/2-05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 资源/train_images/2-06.png
Binary file added 资源/train_images/2-07.png
Binary file added 资源/train_images/2-08.png
Binary file added 资源/train_images/2-09.png
Binary file added 资源/train_images/2-10.png
Binary file added 资源/train_images/3-01.png
Binary file added 资源/train_images/3-02.png
Binary file added 资源/train_images/3-03.png
Binary file added 资源/train_images/3-04.png
Binary file added 资源/train_images/3-05.png
Binary file added 资源/train_images/3-06.png
Binary file added 资源/train_images/3-07.png
Binary file added 资源/train_images/3-08.png
Binary file added 资源/train_images/3-09.png
Binary file added 资源/train_images/3-10.png
Binary file added 资源/train_images/4-01.png
Binary file added 资源/train_images/4-02.png
Binary file added 资源/train_images/4-03.png
Binary file added 资源/train_images/4-04.png
Binary file added 资源/train_images/4-05.png
Binary file added 资源/train_images/4-06.png
Binary file added 资源/train_images/4-07.png
Binary file added 资源/train_images/4-08.png
Binary file added 资源/train_images/4-09.png
Binary file added 资源/train_images/4-10.png
Binary file added 资源/train_images/5-01.png
Binary file added 资源/train_images/5-02.png
Binary file added 资源/train_images/5-03.png
Binary file added 资源/train_images/5-04.png
Binary file added 资源/train_images/5-05.png
Binary file added 资源/train_images/5-06.png
Binary file added 资源/train_images/5-07.png
Binary file added 资源/train_images/5-08.png
Binary file added 资源/train_images/5-09.png
Binary file added 资源/train_images/5-10.png
Binary file added 资源/train_images/6-01.png
Binary file added 资源/train_images/6-02.png
Binary file added 资源/train_images/6-03.png
Binary file added 资源/train_images/6-04.png
Binary file added 资源/train_images/6-05.png
Binary file added 资源/train_images/6-06.png
Binary file added 资源/train_images/6-07.png
Binary file added 资源/train_images/6-08.png
Binary file added 资源/train_images/6-09.png
Binary file added 资源/train_images/6-10.png
Binary file added 资源/train_images/7-01.png
Binary file added 资源/train_images/7-02.png
Binary file added 资源/train_images/7-03.png
Binary file added 资源/train_images/7-04.png
Binary file added 资源/train_images/7-05.png
Binary file added 资源/train_images/7-06.png
Binary file added 资源/train_images/7-07.png
Binary file added 资源/train_images/7-08.png
Binary file added 资源/train_images/7-09.png
Binary file added 资源/train_images/7-10.png
Binary file added 资源/train_images/8-01.png
Binary file added 资源/train_images/8-02.png
Binary file added 资源/train_images/8-03.png
Binary file added 资源/train_images/8-04.png
Binary file added 资源/train_images/8-05.png
Binary file added 资源/train_images/8-06.png
Binary file added 资源/train_images/8-07.png
Binary file added 资源/train_images/8-08.png
Binary file added 资源/train_images/8-09.png
Binary file added 资源/train_images/8-10.png
Binary file added 资源/train_images/9-01.png
Binary file added 资源/train_images/9-02.png
Binary file added 资源/train_images/9-03.png
Binary file added 资源/train_images/9-04.png
Binary file added 资源/train_images/9-05.png
Binary file added 资源/train_images/9-06.png
Binary file added 资源/train_images/9-07.png
Binary file added 资源/train_images/9-08.png
Binary file added 资源/train_images/9-09.png
Binary file added 资源/train_images/9-10.png
Binary file added 资源/train_images/hw.fla
Binary file not shown.

0 comments on commit 55f9d77

Please sign in to comment.