- 博客(5)
- 收藏
- 关注
转载 求字符串长度的函数的几种实现方法
求字符串长度的函数的几种实现方法:https://blog.csdn.net/ZWE7616175/article/details/75516155
2018-09-13 09:56:48 9817
原创 求字符串长度
求字符串长度: #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 290
原创 时间模块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 322
原创 格式化输出字符串
格式化方法有时候我们会想要从其他信息中构建字符串。这正是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 2291
原创 python基础知识
1.注释注释 是任何存在于 # 号右侧的文字,其主要用作写给程序读者看的笔记。举个例子:print('hello world') #注意到 print 是一个函数或者:# 注意到 print 是一个函数print('hello world')你应该在你的程序中尽可能多地...
2018-06-13 15:55:15 131
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人