摘要: 《python数据分析入门》书籍上的例子 import requests from bs4 import BeautifulSoup import pandas as pd # 请求数据 def get_data(): url = 'https://book.douban.com/latest' h 阅读全文
posted @ 2020-10-23 22:50 不懂就问薛定谔的猫 阅读(315) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; int main() { int num; int sum; cin>>num; sum = 5*(num-32)/9; cout<<"Celsius = "<<sum<<endl; return 0; } 阅读全文
posted @ 2020-10-23 11:49 不懂就问薛定谔的猫 阅读(89) 评论(0) 推荐(0) 编辑
摘要: /** * 该方法使用数组去实现 */ #include<iostream> using namespace std; int main() { int num,b[1000]={},c[1000]={},last_num,find_b; //身份证16位数太大了,当成字符串去实现 string a 阅读全文
posted @ 2020-10-23 11:47 不懂就问薛定谔的猫 阅读(161) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; int main() { char c; int a[10]={0}; while((c = getchar()) != '\n'){ a[c-'0']++; } for(int i=0;i<10;i++){ 阅读全文
posted @ 2020-10-23 11:46 不懂就问薛定谔的猫 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 本题要求你写个程序把给定的符号打印成沙漏的形状。例如给定17个“*”,要求按下列格式打印 ***** *** * *** ***** 所谓“沙漏形状”,是指每行输出奇数个符号;各行符号中心对齐;相邻两行符号数差2;符号数先从大到小顺序递减到1,再从小到大顺序递增;首尾符号数相等。 给定任意N个符号, 阅读全文
posted @ 2020-10-23 11:44 不懂就问薛定谔的猫 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 这道超级简单的题目没有任何输入。 你只需要在一行中输出著名短句“Hello World!”就可以了。 输入样例: 无 输出样例: Hello World! #include<iostream> using namespace std; int main() { cout << "Hello Worl 阅读全文
posted @ 2020-10-23 11:43 不懂就问薛定谔的猫 阅读(91) 评论(0) 推荐(0) 编辑