国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
如何:使用字符串方法搜索字符串 (C#)
class StringSearch{    static void Main()    {        string str = "A silly sentence used for silly purposes.";        System.Console.WriteLine("'{0}'",str);        bool test1 = str.StartsWith("a silly");        System.Console.WriteLine("starts with 'a silly'? {0}", test1);        bool test2 = str.StartsWith("a silly", System.StringComparison.OrdinalIgnoreCase);        System.Console.WriteLine("starts with 'a silly'? {0} (ignoring case)", test2);        bool test3 = str.EndsWith(".");        System.Console.WriteLine("ends with '.'? {0}", test3);        int first = str.IndexOf("silly");        int last = str.LastIndexOf("silly");        string str2 = str.Substring(first, last - first);        System.Console.WriteLine("between two 'silly' words: '{0}'", str2);    }}
本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
C#字符串的常用操作
閑得發(fā)慌篇_字符串直接賦值與替換性能對比
C#寫入和讀出文本文件
C# string 到底是引用類型還是值類型
某招聘題:將一串字符中的所有字母減去1輸出,其中字母a為w
C# 字符串(String) | 菜鳥教程
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服