首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
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
#include <stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
void menu()
{
    printf("xxxxx\n");
    printf("请选择 1.paly   0.exit \n");
}
void game()
{
    int set=0;
......................
阅读全部 | Dnoe 贴于 2021年2月28日 20:35     hide bbsi
#include<stdio.h>

int main() 
{
   int i=1;
   for(i=1;i<=9;i++)
   {
       int j=1;
       for(j=1;j<=i;j++)
      {
          printf("%d*%d=%-3d",i,j,i*j);
          
......................
阅读全部 | Dnoe 贴于 2021年2月27日 18:54     hide bbsi
#include<stdio.h>

int main() 
{
    int i=0;
    int count=0;
    for(i=1;i<=100;i++)
     {
          if(i%10==9)
          {
              count++;
          }
......................
阅读全部 | Dnoe 贴于 2021年2月27日 18:30     hide bbsi
#include<stdio.h>

int main() 
{
     int i=0;
     double sum=0.0;
     int zhuan=1;
     for(i=1;i<=100;i++)
     {
         sum+=zhuan*1.0/i;
         zhuan=-zhuan;
     }
......................
阅读全部 | Dnoe 贴于 2021年2月27日 18:17     hide bbsi
上一页 80 81 82 83 84 85 86 87 88 89 下一页