일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- ubuntu
- 날짜
- Linux
- node.js
- Unity
- flutter
- PyQt5
- PyQt
- 다이어트
- 유니티
- Excel
- PER
- GIT
- IOS
- 함수
- pandas
- sqlite
- MS-SQL
- port
- javascript
- 라즈베리파이
- urllib
- 맛집
- tensorflow
- 리눅스
- python
- MySQL
- mssql
- swift
- ASP
목록랭귀지 (418)
아미(아름다운미소)
requires.txt에 패키지 목록이 있으면 -r 옵션을 통해 손쉽게 설치할 수도 있습니다. pip install -r 파일명 == 버전으로 특정 버전을 설치할 수 있습니다. pip install module==1.10 예)pip install pyinstaller==3.5
다음 명령어 실행하면 설치됩니다. c:\WINDOWS\system32> @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
No module named 'PyQt5.QtWebEngineWidgets' 에러시 설치가 필요한 모듈은? $pip install PyQtWebEngine
Python3 urllib으로 http로 POST 전송 ''' Created on 2019. 12. 21. @author: test ''' import urllib.parse import urllib.request details = urllib.parse.urlencode({'CODE': '코드', 'NAME': '이름', 'KIND': '종류', 'PRICE': '가격', 'USERID': '아이디'}) details = details.encode('UTF-8') url = urllib.request.Request('https://test.cafe24.com/postdata_test.php', details) url.add_header("User-Agent","Mozilla/5.0 (Windows; U..
엑셀의 VBA 나 VBS 등, 비주얼베이직(비쥬얼베이직) 계열의 언어에서는, Chr(13)을 이용해서 긴 행을 다음줄로 줄바꿈할 수 있습니다. Chr(13) 은 엔터(Enter)키의 아스키 코드입니다. Chr(13)을 넣으면 키보드의 엔터키를 친 것과 똑같이 됩니다. Chr(13) 의 앞뒤로 & 기호를 넣어서, 앞뒤의 문자열과 연결해 주어야 합니다. 예를 들면 아래와 같습니다: msgbox "첫째줄" & Chr(13) & "다음줄",vbInformation,"줄바꿈예제" 이러면 첫째줄 다음줄 이렇게 줄바꿈이 되어 나옵니다.
숫자 ASCII코드는 48번부터 57번 입니다. Function RefNumeric(inputStr) a = inputStr result = "" For i = 1 To Len(a) checkStr = Mid(a, i, 1) If Asc(checkStr) > 47 And Asc(checkStr) < 58 Then result = result & checkStr End If Next RefNumeric = result End Function inputStr = "테 스 트12345 67890" Response.write RefNumeric(inputStr) 결과 : 1234567890
pip로 설치된 package 목록을 보기 위해서는 pip에 freeze 옵션을 사용합니다. 특정 package에 대한 보다 자세한 정보를 얻기 위해서는 pip에 show 옵션을 사용합니다.
HTTP GET in Python Python 3: import urllib.request contents = urllib.request.urlopen("http://test.com/?name=test&tel=01022223333").read() Python 2: import urllib2 contents = urllib2.urlopen("http://test.com/?name=test&tel=01022223333").read()