原创 羅馬數字轉整數

羅馬數字包含以下七種字符:I, V, X, L,C,D 和 M。字符 數值 I 1 V 5 X 10 L 50 C

原创 jupyter作業

Anscombe's quartetAnscombe's quartet comprises of four datasets, and is rather famous. Why? You'll find out in this exe

原创 螺旋矩陣 II

給定一個正整數 n,生成一個包含 1 到 n2 所有元素,且元素按順時針順序螺旋排列的正方形矩陣。示例:輸入: 3 輸出: [ [ 1, 2, 3 ], [ 8, 9, 4 ], [ 7, 6, 5 ] ]class Solutio

原创 Numpy作業題

Generate matrices A, with random Gaussian entries, B, a Toeplitz matrix, where A 2 Rn×m and B 2 Rm×m,for n = 200, m = 5

原创 MySQL學習總結(5):列屬性

列屬性 空屬性 學到這裏突然發現一個大問題,原來創建字段時最好不要留null,會引發很多問題https://www.cnblogs.com/balfish/p/7905100.html 所以創建或添加字段時最好加上not null 列

原创 MySQL學習總結(4):數據類型(列類型)

數據類型(列類型): 講了這麼久終於到了數據類型,到目前爲止我只用了int和varchar類型,其他類型都沒了解過,現在進行學習。 好吧下面這幅圖也是從那個大佬的博客找來的 不得不說真的是應有盡有,而且每種類型還分這麼細 這裏有個新指令

原创 matplotlib作業

第一題:import numpy as np import math import matplotlib.mlab as mlab import matplotlib.pyplot as plt import scipy.stats as

原创 最長公共前綴

編寫一個函數來查找字符串數組中的最長公共前綴。如果不存在公共前綴,返回空字符串 ""。示例 1:輸入: ["flower","flow","flight"] 輸出: "fl" 示例 2:輸入: ["dog","racecar","car"

原创 Binary Tree Right Side View

Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see orde

原创 MySQL學習總結(1):MySQL環境配置

本博客主要爲MySQL的學習總結,並不是完整教程,主要記錄一些mysql的操作,理論方面很少提及。 本博客參考https://blog.csdn.net/column/details/16138.html?&page=3這位大佬的博客 安

原创 Python第八章課後作業(函數)

8-1 消息:def display_message(): print("I learn function in this chapter") display_message()運行結果:8-2 喜歡的圖書:def favorite_

原创 第十一章課後習題

11-1 城市和國家:編寫一個函數,它接受兩個形參:一個城市名和一個國家名。這個函數返回一個格式爲 City, Country 的字符串,如 Santiago, Chile。將這個函數存儲在一個名爲 city _functions.py

原创 Python第九章課後習題

9-1 餐館:class Restaurant(): """docstring for Restaurant""" def __init__(self, restaurant_name, cuisine_type): self.r

原创 全排列

給定一個沒有重複數字的序列,返回其所有可能的全排列。示例:輸入: [1,2,3] 輸出: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1] ] def p

原创 sklearn作業

直接上代碼,因爲都是函數都是ppt裏面的也沒有太多解釋,具體看註釋即可from sklearn import datasets from sklearn import model_selection from sklearn.naive_