#include<stdio.h>
#include<math.h>
#include<windows.h>
#include<time.h>
#define U 0.1
#define V 0.053
void SetColor(unsigned short ForeColor,unsigned short BackGroundColor)
{
HANDLE hCon=GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hCon,(ForeColor%16)|(BackGroundColor%16*16));
}
int main()
......................
阅读全部
|
ZHURONG2464
贴于 2023年5月10日 15:48
hide
bbsi
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace UdpClientServer
{
class class1
{
static void Main()
{
StarListener();
Console.ReadLine();
......................
阅读全部
|
weiwei2023
贴于 2023年4月12日 13:04
hide
bbsi
import random
# 生成一个随机数
num = random.randint(1, 100)
guesses = 0
# 询问用户猜数字
print("我已经想好了一个数字,请猜一猜是多少?(1~100)")
# 循环直到用户猜中为止
while True:
# 读取用户输入的数字
......................
阅读全部
|
asdas1111
贴于 2023年4月6日 19:34
hide
bbsi
def is_prime(n):
if n < 2:
return False
for i in range(2, int(n**0.5)+1):
if n % i == 0:
return False
return True
阅读全部
|
asdas1111
贴于 2023年4月6日 19:32
hide
bbsi
Pi=3.14;
r=float(input('20'));
s2=Pi*r*r;
r=r+20;
s1=Pi*r*r;
s=s1-s2;
print('20',s):
阅读全部
|
人中有剑
贴于 2023年3月30日 13:05
hide
bbsi
#排序
s=[10,2,3,6,5,4,1,7,9,8,0]
print(s)
s.sort(reverse = True )
print(s)
s=[10,2,3,6,5,4,1,7,9,8,0]
print(s)
s.sort()
print(s)
#计算
......................
阅读全部
|
人中有剑
贴于 2023年3月30日 12:26
hide
bbsi
for i in range(1,10):
for j in range(1,i+1):
print(str(i)+'*'+str(j)+"="+str(i*j),end="")
print()
print("----------------")
for i in range(9,0,-1):
for j in range(i,0,-1):
print(str(i)+'*'+str(j)+"="+str(i*j),end="")
print()
阅读全部
|
YIYIMAMA
贴于 2023年3月28日 13:45
hide
bbsi