- 博客(44)
- 收藏
- 关注
原创 ‘pip install‘ fails for every package (“Could not find a version that satisfies the requirement“)
详见https://stackoverflow.com/questions/49748063/pip-install-fails-for-every-package-could-not-find-a-version-that-satisfiescurl https://bootstrap.pypa.io/get-pip.py | pythonpip install --upgrade setuptools
2021-09-11 15:22:02
161
原创 ERROR: Could not find a version that satisfies the requirement torch-scatter==2.0.4+cu100
ERROR: Could not find a version that satisfies the requirement torch-scatter==2.0.4+cu100torch-scatter、torch-cluster等等,通用,打开torch_geometric的文档 torch_geometric官网pip install torch-scatter -f https://data.pyg.org/whl/torch-${TORCH}+${CUDA}.htmlpip install
2021-09-11 15:04:33
991
原创 Django安装与基础使用
本文内容包括Django安装以及实现一个简易网站Demo参考自Python Tutorial for Beginners [Full Course] Learn Python for Web Development本人环境Ubuntu18.04,python3.6Django安装一条命令解决pip3 install django如果在国内安装出现超时可以更换pip源,例如pip...
2020-04-15 18:45:22
627
原创 Sublime + PlantUML配置
Sublime + PlantUML配置PlantUML是什么PlantUML示例sublime + plantUML环境配置需求环境java 环境配置sublime text 配置graphviz 和 sublime-plantuml插件 配置graphviz 配置sublime-plantUML插件重启sublime 提示 Unable to load diagram plugin, chec...
2020-04-07 12:50:50
1566
1
原创 FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressedAndroid加载资源时报错。因为非常见后缀名文件可能被压缩,具体参考:https://stackoverflow.com/questions/6186866/java-io-filenotf...
2020-03-20 16:54:39
735
1
原创 Android 申请网络权限后还是连不上网
在AndroidManifest.xml中:android:usesCleartextTraffic="true"
2020-03-07 20:18:37
1041
原创 NetworkInfo弃用
https://blog.youkuaiyun.com/q851587550/article/details/102783984
2020-02-26 22:09:09
1568
原创 Django启动失败,ImportError: Couldn't import Django. Are you sure it's installed and available on your PY
(base) root@wu-Inspiron-3558:/home/wu/PycharmProjects/pyshop# python3 manage.py runserverTraceback (most recent call last): File "manage.py", line 10, in main from django.core.management impor...
2020-02-25 13:51:44
5031
2
原创 pip安装超时raise ReadTimeoutError(self._pool, None, 'Read timed out.') pip._vendor.urllib3.exceptions.Re
解决办法,更换软件源:pip源阿里云 http://mirrors.aliyun.com/pypi/simple/中国科技大学https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/豆瓣http://pypi.doubanio.com/simple/清华大学https://pypi.tuna.tsinghua.edu.cn/simple...
2020-02-25 10:47:04
3085
原创 Python3使用pip3,相关操作命令
安装sudo apt-get install python3-pip升级sudo pip3 install --upgrade pip卸载sudo apt-get remove python3-pip修复(这个真的很好用!!!出错了记得修复)sudo apt-get install --reinstall python3-pip...
2020-02-24 12:15:27
265
原创 [Android]浏览器无法访问网络
1、AndroidManifest.xml的manifest中添加<uses-permission android:name="android.permission.INTERNET"/>2、如果访问的是http,高版本的Andorid(已知9以上)需要: 改成https 或者, AndroidManifest.xml的application中...
2020-02-21 11:18:52
503
原创 [Android]SharedPreference存储成功,读取不到
问题描述: commit()或者apply()之后保存成功,并且打开对应的xml文件查看储存成功,但是onCreat时get不到xml文件中储存的值。解决办法: 建议一个Activity抽取一个全局变量 SharedPreferences mSharedPreferences,就能维持一致性。...
2020-02-21 11:09:17
1133
原创 AVD无法启动问题
AVD点击运行后无法启动,error 1emulator: ERROR:This AVD's configuration is missing a kernel file等等比较误导。其实是因为HAXM没有安装。自己找资源安装好就好了。 ...
2018-09-08 00:34:51
1864
原创 存一下大作业过程中遇到的问题的,有效帮我解决问题的链接
UEFI和GPT下安装Ubuntu16.04和Windows10双系统:点击打开链接Ubuntu16.04安装QT5.8.0:点击打开链接ldd的时候ldd libqsqlmysql.so发现libmysqlclient_r.so.16 => not foundlibssl.so.10 => not foundlibcrypto.so.10 => not found我没有遇到这个...
2018-06-13 20:02:27
872
2
原创 Ubuntu16.04和Windows10双系统安装(UEFI和GPT)
前段时间做大作业,在已有Windows10的电脑上面安装了Ubuntu16.04。其实真正安装过程很快,但是中间遇到了很多误区,导致前前后后弄了三四天这样才装上。首先是在网上面搜索安装过程的时候,按照很多教程的安装过程最后都会在U盘安装完成之后要求重启的时候,重启完成并进入Ubuntu系统的时候提示"please remove installation media and close the tr...
2018-06-13 19:34:34
474
原创 Qt5.9.2+VS2015:error LNK2019: 无法解析的外部符号 __imp__CommandLineToArgvW@8,该符号在函数 _WinMain@16 中被引用
原因: 未包含Shell32.lib解决1:#pragma comment(lib, "Shell32.lib")解决2:属性管理器:链接器->输入->附加依赖项->Shell32.lib (在常规中添加好对应附加库目录)...
2018-05-01 20:10:06
3789
1
原创 [LeetCode]25. Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.k is a positive integer and is less than or equal to the length of the linked list. If the number of no...
2018-03-24 08:53:13
211
原创 24. Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head.For example,Given 1->2->3->4, you should return the list as 2->1->4->3.Your algorithm should use only constant ...
2018-03-24 08:51:59
197
原创 [LeetCode]23. Merge k Sorted Lists
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.代码如下:class Solution {public: ListNode* mergeKLists(vector<ListNode*>& lists) { if (lists...
2018-03-24 08:50:57
169
原创 程序设计实验一:学生信息管理系统(map实现)
要求:一 能够输出所有学生信息二 能够添加学生三 能够删除学生四 能够查看学生的课程信息五 异常处理、控制台循环代码如下:1 课程信息struct SelectedClass{ string s_Class; int i_Score; SelectedClass(string c, int s) :s_Class(c), i_Score(s) {}};2 学生信息struct Stude...
2018-03-20 19:51:08
689
原创 [LeetCode]22. Generate Parentheses
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is:[ "((()))", "(()())", "(())()", "()(())", "...
2018-03-20 19:44:13
310
原创 [LeetCode]21. 合并两个有序链表
合并两个已排序的链表,并将其作为一个新列表返回。新列表应该通过拼接前两个列表的节点来完成。 示例:输入:1->2->4, 1->3->4输出:1->1->2->3->4->4 Personal tips: 递归,代码如下:class Solution {public: ListNode* mergeTwoLists(ListNode* ...
2018-03-17 10:19:43
379
原创 [LeetCode]20. Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order, "()" and "()[]{}" are all valid but ...
2018-03-17 09:55:39
143
原创 [LeetCode]19. Remove Nth Node From End of List
Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the en...
2018-03-16 19:05:28
112
原创 [LeetCode]18. 4Sum(自学留存)
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.Note: The solution set m...
2018-03-15 12:24:57
232
原创 [LeetCode]17. Letter Combinations of a Phone Number(自学留存)
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephone buttons) is given below.Input:Digit string "23"...
2018-03-14 17:59:40
127
原创 [LeetCode]16. 3Sum Closest(自学留存)
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exactly...
2018-03-13 19:30:40
166
原创 [LeetCode]15. 3Sum(自学留存)
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note: The solution set must not contain dupli...
2018-03-12 21:11:57
165
原创 [LeetCode]14. Longest Common Prefix(自学留存)
Write a function to find the longest common prefix string amongst an array of strings.Personal tips:就是每一个字符串从头开始遍历,代码如下:class Solution {public: string longestCommonPrefix(vector<string>& s...
2018-03-11 17:15:31
158
原创 [LeetCode]13. Roman to Integer(自学留存)
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.Personal tips:建立map储存罗马数字I,V,X,L,C,D,M,根据规则,小的数字在大的前面则减,在后则加。代码如下:class Solution {public: So...
2018-03-11 16:29:46
153
原创 [LeetCode]12. Integer to Roman(自学留存)
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.Personal Tips: 使用map,记录1,5,10,50,100,500,1000分别对应的罗马数字,以及其规则。代码如下:class Solution{public: So...
2018-03-10 23:23:59
140
原创 [LeetCode]11. Container With Most Water(自学留存)
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two ...
2018-03-10 23:22:15
145
原创 [LeetCode]10. Regular Expression Matching(自学留存)
Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The matching should cover the entire input stri...
2018-03-08 21:04:56
145
原创 [LeetCode]9. Palindrome Number(自学留存)
Determine whether an integer is a palindrome. Do this without extra space.Personal tips:利用c++新特性to_string函数转换成string然后首尾比较,代码如下:class Solution {public: bool isPalindrome(int x) { if (x < 0) ret...
2018-03-06 19:17:49
263
原创 [LeetCode]8.String to Integer (atoi)(自学留存)
Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input cases....
2018-03-05 20:11:48
155
原创 [LeetCode]7. Reverse Integer(自学留存)
Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:Input: 120Output: 21Note:Assume we are dealing with an envi...
2018-03-01 21:08:05
160
原创 [LeetCode]6. ZigZag Conversion(自学留存)
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P L S I I G...
2018-02-28 13:07:44
139
原创 [LeetCode] 3. Longest Substring Without Repeating Characters(自学留存)
Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc", which the length is 3.Given "bbbbb", the answer is "b", with the l...
2018-02-27 16:52:50
128
原创 [LeetCode]2.Add Two Numbers(自学留存)
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link...
2018-02-26 23:58:48
156
原创 [leetCode]1. Two Sum(自学留存)
Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use the same el...
2018-02-25 15:55:55
140
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人