# -*- coding:utf-8 -*-
import socket
from time import ctime, sleep
import threading
class ChatRoomPlus:
def __init__(self):
# 全局参数配置
self.encoding = "utf-8" # 使用的编码方式
self.broadcastPort = 7788 # 广播端口
......................
阅读全部
|
静夜思
贴于 2021年4月6日 20:29
hide
bbsi
Option Explicit
' By音符,QQ:337855632 Time:2020-03-17
Class Window_Class
Private PostMessage, SendMessage
Public Function GetText(ByVal hWnd)
Dim pszText
pszText = Space(255)
GetText = Left(pszText, Api.ECall("user32.dll", "GetWindowTextW", hWnd, pszText, Len(pszText)))
End Function
Public Function GetClass(ByVal hWnd)
Dim pszText
pszText = Space(255)
......................
阅读全部
|
刘达明
贴于 2021年4月1日 19:16
hide
bbsi
function CString_Class() {
this.getmid = function (str, lstr, rstr, start, mode) {
// '1 不区分大小写
// '2 先查右再左
// '4 后往前查
mode = mode || 0;
start = (mode & 4 && !start) ? mstr.length : start || 0;
if (start < 0) start = start + mstr.length;
if (mode & 1) {
var mlstr = lstr.toLowerCase();
var mrstr = rstr.toLowerCase();
var mstr = str.toLowerCase();
......................
阅读全部
|
angelfly
贴于 2021年3月25日 21:35
hide
bbsi
Option Explicit
' By音符,QQ:337855632 Time:2020-03-17 功能定制:20元起
Class File_Class
Private WritePrivateProfileString, GetPrivateProfileString
Public Function ReadINI(ByVal ApplicationName, ByVal KeyName, ByVal IniPath, ByVal Default)
Dim retstr
retstr = Space(255)
ReadINI = left(retstr, Api.ECall(GetPrivateProfileString, False, ApplicationName, KeyName, Default, retstr, 255, IniPath))
End Function
Public Function WriteINI(ByVal ApplicationName, ByVal KeyName, ByVal Str, ByVal IniPath)
Call Api.ECall(WritePrivateProfileString, False, ApplicationName, KeyName, CStr(Str), IniPath)
End Function
......................
阅读全部
|
angelfly
贴于 2021年3月25日 17:35
hide
bbsi
l1 = list()
for n1 in range(11):
for n2 in range(10):
for n3 in range(10):
for n4 in range(10):
if n1 ** 3 + n2 ** 3 + n3 ** 3 + n4 ** 3 == n1 * 1000 + n2 * 100 + n3 * 10 + n4:
print(int(str(n1) + str(n2) + str(n3) + str(n4)))
阅读全部
|
bccn121
贴于 2021年3月25日 16:33
hide
bbsi
Option Explicit
' By音符,QQ:337855632 Time:2020-03-17 功能定制:20元起
Class Window_Class
Private PostMessage, SendMessage, KMMessage
Private EnumS, Sleep
Public Property Let Delay(iTime) '设置LeftClick KeyPress间隔
Sleep = iTime
End Property
Public Property Let Async(IsAsync) '设置鼠标键盘是否异步
If CBool(IsAsync) Then KMMessage = PostMessage Else KMMessage = SendMessage
End Property
Public Function GetText(ByVal hWnd)
......................
阅读全部
|
angelfly
贴于 2021年3月25日 16:30
hide
bbsi
import pickle
import os
datafile = 'person.data'
line = '======================================='
message = '''
=======================================
Welcome bookmark:
press 1 to show list
press 2 to add pepole
press 3 to edit pepole
press 4 to delete pepole
......................
阅读全部
|
metersbilly
贴于 2021年3月24日 09:54
hide
bbsi
import math
#dot=[[1,1],[3,2],[5,3],[4,1],[2,3],[1,4]]
dot=[[2,1],[4,8],[1,2],[3,6]]
def fang_cheng(dot):
fc=[]
l=len(dot)
for i in range(l) :
for j in range(i+1,l):
a=dot[j][0]-dot[i][0]
b=dot[i][1]-dot[j][1]
......................
阅读全部
|
qunxingw
贴于 2021年3月23日 11:54
hide
bbsi
def float_(n):
if n==0:
return 0
len=0
s=n
while(n>=1):
n=n/10
len=len+1
t=n
return s/(10**len-1)
......................
阅读全部
|
qunxingw
贴于 2021年3月15日 00:13
hide
bbsi
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(void)
{
clock_t c,l;
long n;
l=0L;
for(n=0;1;n++)
{
......................
阅读全部
|
W192547975
贴于 2021年3月7日 10:05
hide
bbsi