#pragma once
#include<windows.h>
#include<iostream>
using namespace std;
typedef struct Frame
{
COORD position[2];
// COORD 是Windows API中定义的一种结构,表示一个字符在控制台屏幕上的坐标。
// 其定义为:
// typedef struct _COORD {
// SHORT X;
......................
阅读全部
|
iuyt
贴于 2023年8月15日 10:35
hide
bbsi
#include<iostream>
using namespace std;
int main()
{
cout<<"春晓"<<endl;
cout<<"春眠不觉晓,"<<endl;
cout<<"处处蚊子咬."<<endl;
cout<<"夜来嗡嗡声,"<<endl;
cout<<"脓包知多少."<<endl;
return 0;
}
阅读全部
|
王奕霖
贴于 2023年8月11日 13:56
hide
bbsi
a=1
while a<=9:
b=1
while b<=a:
c=b*a
print(str(b)+"*"+str(a)+"="+str(c),end="\t")
b=b+1
a=a+1
print("")
阅读全部
|
王奕霖
贴于 2023年8月10日 22:51
hide
bbsi
a=1
while a<=9:
b=1
while b<=a:
c=b*a
print(str(b)+"*"+str(a)+"="+str(c),end="\t")
b=b+1
a=a+1
print("")
阅读全部
|
王奕霖
贴于 2023年8月10日 22:50
hide
bbsi
import turtle as t
from datetime import*
def Skip(step):
t.penup()
t.forward(step)
t.pendown()
def mkHand(name,length):
t.reset()
Skip(-length*0.1)
t.begin_poly()
t.forward(length*1.1)
t.end_poly()
......................
阅读全部
|
小白在此
贴于 2023年8月7日 22:05
hide
bbsi
#include <stdio.h>
int main() {
printf("祝福各位驾照快快考出\n\n");
// 练习一下循环的使用
int i;
for (i=1; i<=100; i++) {
printf("祝福各位驾照快快考出 %d 次\n", i);
}
printf("\n\n绘制一个心形图案:");
......................
阅读全部
|
明月诱人
贴于 2023年7月21日 23:10
hide
bbsi
#include <stdio.h>
int main() {
printf("祝福各位驾照快快考出\n\n");
// 练习一下循环的使用
int i;
for (i=1; i<=100; i++) {
printf("祝福各位驾照快快考出 %d 次\n", i);
}
printf("\n\n绘制一个心形图案:");
......................
阅读全部
|
明月诱人
贴于 2023年7月21日 23:10
hide
bbsi
import openai
# 設置OpenAI API的密鑰
openai.api_key = '11'
# 定義聊天模型的輸入提示
def get_chat_response(prompt):
response = openai.Completion.create(
engine='text-davinci-003', # 指定使用的模型
prompt=prompt,
max_tokens=50 # 生成聊天回復的最大長度
)
......................
阅读全部
|
晏晴
贴于 2023年7月20日 22:51
hide
bbsi
class Alpaca:
def __init__(self, name, age):b I’m
self.name = 你爹
self.age = 12
def introduce(self):
print(f"你好,我叫{self.name} ,現在 {self.age} 歲.")
阅读全部
|
晏晴
贴于 2023年7月20日 22:29
hide
bbsi
#include <iostream>
#include <string>
// 函數:回答用戶的問題
std::string respond(const std::string& question) {
// 在這裡添加你的回答邏輯
// 你可以使用條件語句、函數等來組織你的邏輯
// 簡單示例:回答固定的問候語
if (question == "你好") {
return "你好,有什麼我可以幫助你的嗎?";
}
......................
阅读全部
|
晏晴
贴于 2023年7月19日 18:37
hide
bbsi