#辅助自定义代码生成
SELECT DISTINCT
c.table_name,#表名称
c.column_name, #字段名称
c.column_comment, #字段注释
c.column_type, #字段类型
c.column_key,#是否主键
c.is_nullable#是否必填
,t.`TABLE_COMMENT`#表注释
FROM information_schema.columns c
LEFT JOIN information_schema.`TABLES` t
ON c.`TABLE_NAME`=t.`TABLE_NAME`
......................
阅读全部
|
miaoge911015
贴于 2020年9月23日 18:26
hide
bbsi
using System;
namespace bccn
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("随机编码");
Console.WriteLine();
// 练习一下随机编码的使用
......................
阅读全部
|
miaoge911015
贴于 2020年9月23日 18:08
hide
bbsi
#include<stdio.h>
int mian() {
struct stu{
char *name;
int num;
int age;
char group;
float score;
}stu1;
stu1.name = "Tom";
stu1.num = 12;
stu1 .age= 18;
......................
阅读全部
|
中山彭于晏
贴于 2020年9月20日 16:48
hide
bbsi
#include <stdio.h>
#include <iostream>
#include<string.h>
using namespace std;
int main(){
int n,i,j=0,sum,look[100];
char s[5];
for(i=0;i<6;i++)
std::cin >>s[i] ;
int cnt[256]={0};
for(i=0;i<6;i++){
cnt[s[i]]++;
......................
阅读全部
|
helloword123
贴于 2020年9月19日 20:18
hide
bbsi
#include<stdio.h>
void main()
{
int i,j;
scanf("%d",&i);
printf("%d",i);
}
阅读全部
|
kfx8421
贴于 2020年9月18日 08:33
hide
bbsi
#测试一个列表的for循环
#测试1
#深入的研究for循环你会发现,其实是程序每执行一次in后面的变量,并提取每次执行该变量中执行N次的字符位置。
zxc='a','b','c'
for i in zxc:
print(zxc)
#当打印in后面的变量时,print会显示出该变量的(字符所含有的总位数或元素数量*字符本身)
('a', 'b', 'c')
('a', 'b', 'c')
('a', 'b', 'c')
#因为是3个字符,所以打印3次,当打印变量i时,for语句是按zxc中的总元素数量来执行的,而每执行一次,就会提取其中第N个元素。
......................
阅读全部
|
qq935599717
贴于 2020年9月17日 04:50
hide
bbsi
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <conio.h>
#include <time.h>
#ifdef WIN32
#include <windows.h>
#define usleep(t) Sleep((t)/1000)
#define kbhit _kbhit
#define getch _getch
#endif
......................
阅读全部
|
xl1365209903
贴于 2020年9月15日 14:13
hide
bbsi
#参考资料https://www.jb51.net/article/178869.htm
#修改python运行路径
#路径加载连接的三种方式:'/'、 ‘\' 、 r''
import os
os.chdir('C:/Users/86177/Desktop')
os.chdir(r'C:\Users\86177\Desktop')
os.chdir('C:\\Users\\86177\\Desktop')
#获得当前python程序运行路径
import os
print(os.getced())
#输出结果为:‘C:\Users\86177\Desktop'(当前程序在的路径)
......................
阅读全部
|
qq935599717
贴于 2020年9月14日 07:19
hide
bbsi
import os
files = os.listdir()
for file in files:
print(file, os.path.isdir(file))
阅读全部
|
qq935599717
贴于 2020年9月14日 07:05
hide
bbsi
#include <stdio.h>
typedef struct
{
int num;
char name[10];
int math;
int word;
}student;
student Input(student s)
{
scanf("%d %s %d %d",&s.num,s.name,&s.math,&s.word);
return s;
......................
阅读全部
|
公子小白13号
贴于 2020年9月7日 12:53
hide
bbsi