Lập trình

Q & A cho các lập trình viên chuyên nghiệp và đam mê




5
Kiểm tra nếu loại == danh sách trong python
Tôi có thể bị rắm não ở đây, nhưng tôi thực sự không thể tìm ra điều gì sai với mã của mình: for key in tmpDict: print type(tmpDict[key]) time.sleep(1) if(type(tmpDict[key])==list): print 'this is never visible' break đầu ra là <type 'list'>nhưng câu lệnh if không bao giờ kích hoạt. …
185 python 






29
mat-form-field phải chứa MatFormFieldControl
Chúng tôi đang cố gắng xây dựng các Thành phần trường mẫu của riêng mình tại Công ty của chúng tôi. Chúng tôi đang cố gắng bọc các thành phần của thiết kế vật liệu như thế này: cánh đồng: <mat-form-field> <ng-content></ng-content> <mat-hint align="start"><strong>{{hint}}</strong> </mat-hint> <mat-hint align="end">{{message.value.length}} / 256</mat-hint> <mat-error>This …


11
kết hợp giữa hai danh sách?
Đã được một thời gian và tôi gặp khó khăn trong việc xoay quanh một thuật toán mà tôi đang cố gắng thực hiện. Về cơ bản, tôi có hai danh sách và muốn nhận tất cả các kết hợp của hai danh sách. Tôi có thể không giải thích …

22
Xcode - ld: không tìm thấy thư viện cho -lPods
Tôi gặp những lỗi này khi tôi cố gắng xây dựng một ứng dụng iOS. ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation) Ld /Users/Markus/Library/Developer/Xcode/DerivedData/Totalbox-clpeqwpfvwuhpleeejnzlavncnvj/Build/Products/Debug-iphonesimulator/Totalbox.app/Totalbox normal x86_64 cd /Users/Markus/Development/xcode/totalbox-ios export IPHONEOS_DEPLOYMENT_TARGET=7.1 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk …



Khi sử dụng trang web của chúng tôi, bạn xác nhận rằng bạn đã đọc và hiểu Chính sách cookieChính sách bảo mật của chúng tôi.
Licensed under cc by-sa 3.0 with attribution required.