小编use*_*030的帖子

如何阅读文本框中的最后一行?

我有一个不断更新的多行文本框.我只需要阅读文本框中的最后一个单词/句子.

string lastLine = textBox1.ReadLine.Last();
Run Code Online (Sandbox Code Playgroud)

c# linq string textbox readlines

5
推荐指数
1
解决办法
5038
查看次数

如何移动没有文件扩展名的文件?C#

if (File.Exists(@"C:\\Users" + Environment.UserName + "\\Desktop\\test"))
{                                                                /\
                                               this file has no file extension
}          
Run Code Online (Sandbox Code Playgroud)

该文件test没有扩展名,我需要帮助将此文件移动或重命名为具有扩展名的文件

c# io file

2
推荐指数
1
解决办法
1263
查看次数

如何每小时从 Linux 终端运行 python 脚本?

所以我想每小时从 linux 终端运行这个命令python run.py。做这个的最好方式是什么?

python linux

-1
推荐指数
1
解决办法
6568
查看次数

标签 统计

c# ×2

file ×1

io ×1

linq ×1

linux ×1

python ×1

readlines ×1

string ×1

textbox ×1