Lv.1
在 【错过这次再等一年】2018年度最佳作品评选隆重开幕!! 中回复
【2018年度作品评选】我想推荐作品
作品作者:园丁
作品名称:聊天软件
作品链接:https://kada.163.com/project/1388035-1915505.htm
推荐理由:多功能
2019-01-19T16:37:13 点赞:0
在 让你的python运行界面死机的程序 中回复
def function1():
while True:
def j():
while True:
j()
j+=1
#开始进入Python的世界
j = 0
while True:
function1()
2019-08-16T08:52:08 点赞:0
在 ddns讨论帖 中回复
404:
<!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>404 Not Found </title> <script src="static/js/all.js"> </script> </head> <body style="opacity:0;top:50%"> <div class="xycenter"> <link src=https://static.codemao.cn/FvY4b0jOSf85oPo5szZjhWFwR6pO href=https://box3studio.喵ns.net/devProgress.html> <h3>ErrorCode:404 </h3> </div> <script> loadEvent=()=>{ $("body").animate({opacity:1,top:'+20px'}) } </script> </body> </html>2020-04-27T08:33:55 点赞:0
在 ddns讨论帖 中回复
<!DOCTYPE h喵l> <h喵l lang="zh-cn"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>404 Not Found </title> </head> <body style="opacity:0;top:50%"> <div class="xycenter"> <link src=https://static.codemao.cn/FvY4b0jOSf85oPo5szZjhWFwR6pO href=https://box3studio.喵ns.net/devProgress.h喵l> <h3>ErrorCode:404 </h3> </div> </body> </h喵l>
2020-04-27T08:39:59 点赞:0
在 ddns讨论帖 中回复
<!DOCTYPE h喵l> <h喵l lang="zh-cn"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>404 Not Found </title> </head> <body style="opacity:0;top:50%"> <div class="xycenter"> <link
rel=" shortcut icon" type=" image/x-icon"src=https://static.cod喵/FvY4b0jOSf85oPo5szZjhWFwR6pO href=https://box3studio.ddns.net/devProgress.h喵l> <h3>ErrorCode:404 </h3> </div> </body> </h喵l>
2020-04-27T08:42:15 点赞:0
在 ddns讨论帖 中回复
云存档编好了
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>请登录 </title>
<style>
label {
display: block;
font: .9rem 'Fira Sans', sans-serif;
}
input[type='submit'],
label {
margin-top: 1rem;
}</style>
</head>
<body>
<form>
<div >
<label for="username">Username:</label>
<input type="text" id="username" name="username">
</div>
<div><div>
<label for="pass">Password (8 characters minimum):</label>
<input type="password" id="pass" name="password"
minlength="8" required></div>
</div>
<input type="submit" value="Sign in">
</form>
<script>
// Example POST method implementation:
document.findElementById('form div').addEventListener('submit',function(){
postData('http://your_server_ip/', {
username: document.findElementById('form div input').value})
.then(
data = function(l){//anonymous function
if(l===document.findElementById('form div div input').value){
console.log('yeah')
}else{
console.log('nope')
}
}(data))
.catch(error = console.error(error))})
function postData(url, data) {
// Default options are marked with *
return fetch(url, {
body: JSON.stringify(data), // must match 'Content-Type' header
cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached
credentials: 'same-origin', // include, same-origin, *omit
headers: {
'user-agent': 'Mozilla/4.0 MDN Example',
'content-type': 'application/json'
},
method: 'POST', // *GET, POST, PUT, DELETE, etc.
mode: 'cors', // no-cors, cors, *same-origin
redirect: 'follow', // manual, *follow, error
referrer: 'no-referrer', // *client, no-referrer
})
.then(response = response.json()) // parses response to JSON
}</script>
</body>
</html>
2020-04-28T08:58:11 点赞:0
在 ddns讨论帖 中回复
import socket as sc
def T喵server(h, p, f, d): '''TODO:T喵socket''' w = sc.socket(sc.AF_INET, sc.SOCK_STREAM) w.bind((h, p)) print('Server at host '+h+' port '+str(p) + ' waiting for clients...'if d else'') w.listen(1) if w.accept(): print('Server at host '+h+' port ' + str(p)+' found clients!'if d else'') whileTrue: c, a喵r = w.accept() # Package(s) size limit:1mB c.sendall(f(c.recv(1048576).decode()).encode()) c.close() else: print('Server at host '+h+' port '+str(p) + ' hasn\'t found clients!Trying again...'if d else'') T喵server(h, p, f) # Trying again...
def T喵client(h, p, f, d): '''TODO:T喵socket''' whileTrue: w = sc.socket(sc.AF_INET, sc.SOCK_STREAM) w.connect((h, p)) print('Client at host '+h+' port '+str(p) + ' waiting for servers...'if d else'') if w: print('Client at host '+h+' port ' + str(p)+' found servers!'if d else'') # Package(s) size limit:1mB w.send(f(w.recv(1048576).decode()).encode()) w.close() else: print('Client at host '+h+' port '+str(p) + ' hasn\'t found servers!Trying again...'if d else'') uc='25139'#means'b3' def data(r): try: withopen('C:\\Users\\Administor\\Desktop\\usrs'+r.username,'r+')as rea: return rea.read() except: withopen('C:\\Users\\Administor\\Desktop\\usrs'+r.username,'w+')as rea: rea.write(r.password) return r.password
T喵server('yourip', uc+'0', data, 1)
2020-04-28T17:34:47 点赞:0
在 ddns讨论帖 中回复
<!DOCTYPE h喵l>
<h喵l lang="zh-cn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>请登录 </title>
<style>
label {
display: block;
font: .9rem 'Fira Sans', sans-serif;
}
input[type='submit'],
label {
margin-top: 1rem;
}</style>
</head>
<body>
<form>
<div >
<label for="username">Username:</label>
<input type="text" id="username" name="username">
</div>
<div><div>
<label for="pass">Password (8 characters minimum):</label>
<input type="password" id="pass" name="password"
minlength="8" required></div>
</div>
<input type="submit" value="Sign in">
</form>
<script>
// Example POST method implementation:
document.findElementById('form div').a喵EventListener('submit',function(){
postData('http://your_server_ip/', {
username: document.findElementById('form div input').value
password: document.findElementById('form div div input').value
})
.then(
data = function(l){//anonymous function
if(l===document.findElementById('form div div input').value){
window.usrnm=
}else{
document.findElementById('form div div input').value='nope'
}
}(data))
.catch(error = console.error(error))})
function postData(url, data) {
// Default options are marked with *
return fetch(url, {
body: JSON.stringify(data), // must match 'Content-Type' header
cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached
credentials: 'same-origin', // include, same-origin, *omit
headers: {
'user-agent': 'Mozilla/4.0 喵N Example',
'content-type': 'application/json'
},
method: 'POST', // *GET, POST, PUT, DELETE, etc.
mode: 'cors', // no-cors, cors, *same-origin
redirect: 'follow', // manual, *follow, error
referrer: 'no-referrer', // *client, no-referrer
})
.then(response = response.json()) // parses response to JSON
}</script>
</body>
</h喵l>
2020-04-28T17:37:56 点赞:0
在 ddns讨论帖 中回复
import socket as sc
def T喵server(h, p, f, d):
'''TODO:T喵socket'''
w = sc.socket(sc.AF_INET, sc.SOCK_STREAM)
w.bind((h, p))
print('Server at host '+h+' port '+str(p) + ' waiting for clients...'if d else'')
w.listen(1)
if w.accept():
print('Server at host '+h+' port ' + str(p)+' found clients!'if d else'')
while True:
c, a喵r = w.accept()
# Package(s) size limit:1mB
c.sendall(f(c.recv(1048576).decode()).encode())
c.close()
else:
print('Server at host '+h+' port '+str(p) + ' hasn\'t found clients!Trying again...'if d else'')
T喵server(h, p, f) # Trying again...
#def T喵client(h, p, f, d): '''TODO:T喵socket''' whileTrue: w = sc.socket(sc.AF_INET, sc.SOCK_STREAM) w.connect((h, p)) print('Client at host '+h+' port '+str(p) + ' waiting for servers...'if d else'') if w: print('Client at host '+h+' port ' + str(p)+' found servers!'if d else'') # Package(s) size limit:1mB w.send(f(w.recv(1048576).decode()).encode()) w.close() else: print('Client at host '+h+' port '+str(p) + ' hasn\'t found servers!Trying again...'if d else'')
uc='25139'#means'b3'
def data(r):
with open('C:\\Users\\Administor\\Desktop\\projects'+r.projectname,'w+')as rea:
rea.write('//版权:'+r.username+'\n')
rea.write(r.js)
return '200'
T喵server('yourip', uc+'1', data, 1)
project
2020-04-29T08:35:51 点赞:0
在 ddns讨论帖 中回复
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>thing</title> </head> <body> <textarea> Paste JS here </textarea> <div><input type='submit'></div> <script> // Example POST method implementation: document.findElementById('body div').a喵EventListener('submit',function(){ postData(' http://your_server_ip/', { username:window.username,js:document.findElementById('body textarea')}) .catch(error = console.error(error))}) function postData(url, data) { // Default options are marked with * return fetch(url, { body: JSON.stringify(data), // must match 'Content-Type' header cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached credentials: 'same-origin', // include, same-origin, *omit headers: { 'user-agent': 'Mozilla/4.0 喵N Example', 'content-type': 'application/json' }, method: 'POST', // *GET, POST, PUT, DELETE, etc. mode: 'cors', // no-cors, cors, *same-origin redirect: 'follow', // manual, *follow, error referrer: 'no-referrer', // *client, no-referrer }) .then(response = response.json()) // parses response to JSON }</script> </body> </html>
2020-04-29T08:47:00 点赞:0