首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
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
void main()
{
    int gdriver = DETET,gmode;
    intgraph(&gdriver,&gmode,"c:\\tc")
    cleardevice();
    printf("\n to draw lines with function 'line;.");
    line(160,120,360);
    line(300,480,250);
    getch();
    cleardevice();
    print("\n to draw lines with function 'lineto'.");
    moveto (160,120);
......................
阅读全部 | j18293838448 贴于 2021年3月4日 16:10     hide bbsi
from urllib3 import *
from re import *
#禁止显示警告信息
disable_warnings()
#下载url对应的web页面
def download(url):
    result = http.request('GET',url)
    #获取web页面对应的HTML代码
    htmlStr = result.date.decode('uft-8')
    return htmlStr
#分析HTML代码
def anayse (htmlStr):
......................
阅读全部 | j18293838448 贴于 2021年3月4日 13:49     hide bbsi
from urllib3 import *
from re import *
http =PoolManager()
disable_warnings()
#下载HTML文件
def download(url):
    result = htp.request('GET',url)
    #讲下载的HTML文件代码问uft-8格式解码成字符串
    htmlStr = result.date.decode('uft-8')
    #输出当前抓取的HTML代码
    print(htmlStr)
    result htmlStr
......................
阅读全部 | j18293838448 贴于 2021年3月3日 15:54     hide bbsi
#include<iostream>
using namespace std;
int main()
{
    int t,n,m;
    cin>>t;
    for(int q=1;q<=t;q++)
    {
        cin>>n>>m;
        if(n%2==0)
        {
            if(m<=n/2)
......................
阅读全部 | 我爱罗梦琪 贴于 2021年3月2日 16:30     hide bbsi
上一页 79 80 81 82 83 84 85 86 87 88 下一页