原创 Python使用有道翻譯

import requests content=input("請輸入:") url='http://fanyi.youdao.com/translate?smartresult=dict&smartresult=rule' kv={

原创 Graphviz的安裝 - windows環境下系統安裝和anaconda安裝

解決failed to execute ['dot', '-Tpdf', '-O', 'test'], make sure the Graphviz executables are on your systems' path Graphv

原创 解決TypeError: 'module' object is not callable

  解決方法:

原创 連接mysql出現Access denied for user ‘root’@’localhost’ (using password:YES)問題解決辦法

解決方案: 1.打開MySQL目錄(我的是在C:\Program Files (x86)\MySQL\MySQL Server 5.5)下的my.ini文件,編輯,在文件的最後添加一行“skip-grant-tables”,保存並關閉文件

原创 頁面佈局使按鈕按比例顯示 ,水平和垂直

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" and

原创 水仙花數

/*輸出水仙花數*/ #include<stdio.h>int main(){int a,b,c;for(int i=100;i<=999;i++){a=i/100%10;b=i/10%10;c=i%10;