自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

转载 求字符串长度的函数的几种实现方法

求字符串长度的函数的几种实现方法:https://blog.csdn.net/ZWE7616175/article/details/75516155

2018-09-13 09:56:48 9807

原创 求字符串长度

求字符串长度: #include <iostream> #include <string> using namespace std; int main() { string str = "china guang xi yu lin"; cout << str.length() << endl; ...

2018-09-13 09:49:17 279

原创 时间模块time的用法

Data descriptors defined here:     |       |  tm_gmtoff     |      offset from UTC in seconds     |       |  tm_hour     |      hours, range [0, 23]     |       |  tm_isdst     |      1 if summer time...

2018-06-15 10:51:15 307

原创 格式化输出字符串

格式化方法有时候我们会想要从其他信息中构建字符串。这正是format()方法大有用武之地的地方。将以下内容保存为文件  str_format.py  :age = 20name = 'Swaroop'print('{0} was {1} years old when he wrote this book'.format(name, age))print('Why is {0} playing wi...

2018-06-13 16:39:28 2285

原创 python基础知识

1.注释注释 是任何存在于  #  号右侧的文字,其主要用作写给程序读者看的笔记。举个例子:print('hello world') #注意到 print 是一个函数或者:# 注意到 print 是一个函数print('hello world')你应该在你的程序中尽可能多地...

2018-06-13 15:55:15 122

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除