当前位置:网站首页>判断输入的信息是否为空,如果为空,提示信息
判断输入的信息是否为空,如果为空,提示信息
2022-08-08 23:55:00 【无悔青春_j进无止境】
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestDemo1
{
class Program
{
public static string[] name=new string[1];//声明一个长度为一的字符串类型的数组
static void Main(string[] args)
{
name[0] = Console.ReadLine();//输入一个字符串
while (string.IsNullOrWhiteSpace(name[0]))//判断是否输入的字符串是否为空或者都是空格
{
Console.WriteLine("请重新输入");
name[0] = Console.ReadLine();
}
Console.ReadKey();
}
}
}
边栏推荐
猜你喜欢

循环神经网络实现股票预测

并发编程第3篇,volatile原理分析
![[Deep Learning] TensorFlow Learning Road One: Introduction to TensorFlow and Implementation of Linear Regression and Logistic Regression](/img/1d/68ebf357a93d718cfdbefeaaf623fa.png)
[Deep Learning] TensorFlow Learning Road One: Introduction to TensorFlow and Implementation of Linear Regression and Logistic Regression

移动端真机调试:chrome://inspect/#devices打开inspect后出现空白页

第四章 网络层

【深度学习】TensorFlow学习之路一:TensorFlow简介及线性回归、逻辑回归实现

OSPF实验

风控建模四:逻辑回归评分卡开发

51nod2884

Risk Control Modeling 1: Definition of Good and Bad Labels
随机推荐
BGP总结
MES对接Simba实现展讯平台 IMEI 写号与耦合测试
freemarker的基本语法及入门基础
OSPF综合实验
The most commonly used regular expressions
并发编程第5篇,Synchronized的原理
redis集群三主三从redis-cli
如何学好编程
According to the address returned by Baidu Map, intercept the province, city, district
Laravel框架之数据库配置
截图:如何截图?(我想截鼠标右键按出来的图?)
获取当前一周时间 不含当天
深入理解计算系统第三章程序的机器级表达总结
风控建模一:好坏标签定义
Get the current time before/after one day's date
获取当前时间的前/后某一天的日期
我们的爱恨情仇:人性-关系-危机-和谐的科学研究
05 Spark on 读取内部数据分区存储策略(源码角度分析)
域前置通信过程和溯源思路
TensorFlow learning path deep learning 】 【 3: gradient disappear \ explosion and solution