#include <iostream> using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input loop */ class SqString{private: char * base; int length;public: SqString() { } SqString(char * s) { lengt
1.以简单的循环分支实现字符统计 str1 = input("输入字符串:") num=0;word=0;space=0;other=0; for i in str1: if i.isdigit(): num+=1 elif i.isalpha(): word+=1 elif i.isspace(): space+=1 else: other+=1 str2='''这段字符有%d个数字,有%d的字母,有%d个空格,其他字符有%d个'''%(num,word,space,other) p
还没开始玩这个游戏,但在网易云音乐上听到一首歌,很好听 http://music.163.com/#/m/song?id=468490570 搜了一下相关视频,发现这首歌是在与一个叫做歌姬的boss战斗时的背景音乐 战斗完毕之后,会出现一段文字,我很喜欢,转载如下 Look at me.Oh please look at me.I want your eyes to look upon me alone. Have I not become beautiful? Do these clothes